Commit 6e7907e
http2: fix unneeded cast found by clippy
error: casting to the same type is unnecessary (`u16` -> `u16`)
--> src/http2/http2.rs:1286:47
|
1286 | if !orig_state.is_null() && orig_proto == ALPROTO_HTTP1 as u16 {
| ^^^^^^^^^^^^^^^^^^^^ help: try: `ALPROTO_HTTP1`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#unnecessary_cast
note: the lint level is defined here
--> src/lib.rs:23:38
|
23 | #![cfg_attr(feature = "strict", deny(warnings))]
| ^^^^^^^^
= note: `#[deny(clippy::unnecessary_cast)]` implied by `#[deny(warnings)]`1 parent 256aeae commit 6e7907e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1283 | 1283 | | |
1284 | 1284 | | |
1285 | 1285 | | |
1286 | | - | |
| 1286 | + | |
1287 | 1287 | | |
1288 | 1288 | | |
1289 | 1289 | | |
| |||
0 commit comments