Skip to content

Commit a4e6fb5

Browse files
bobriktottoto
andauthored
fix(tonic): depend on http at least 1.1.0 (#2426)
We use `try_insert`, which was added in v1.1.0: * hyperium/http#682 ``` error[E0599]: no method named `try_insert` found for mutable reference `&mut HeaderMap` in the current scope --> tonic/src/transport/channel/service/user_agent.rs:44:14 | 42 | if let Ok(Some(user_agent)) = req | _______________________________________- 43 | | .headers_mut() 44 | | .try_insert(USER_AGENT, self.user_agent.clone()) | |_____________-^^^^^^^^^^ | help: there is a method `insert` with a similar name | 44 - .try_insert(USER_AGENT, self.user_agent.clone()) 44 + .insert(USER_AGENT, self.user_agent.clone()) | ``` Co-authored-by: tottoto <[email protected]>
1 parent 54f0139 commit a4e6fb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tonic/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ transport = ["server", "channel"]
5757
[dependencies]
5858
base64 = "0.22"
5959
bytes = "1.0"
60-
http = "1"
60+
http = "1.1.0"
6161
tracing = "0.1"
6262

6363
http-body = "1"

0 commit comments

Comments
 (0)