Commit a4e6fb5
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 <tottotodev@gmail.com>1 parent 54f0139 commit a4e6fb5
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments