diff options
author | Hyun Jae Moon <hyunjaemoon@google.com> | 2023-08-07 21:43:50 +0000 |
---|---|---|
committer | Hyun Jae Moon <hyunjaemoon@google.com> | 2023-08-07 22:46:48 +0000 |
commit | 17488f02c0ee6be8bd8f6ad53b0770af74f000f1 (patch) | |
tree | f722a2e32344e1b98e1eec5df5977364a16b82b2 | |
parent | 8180cecbadcd9eecd07a161ca3a904ba92123fa6 (diff) | |
download | http-17488f02c0ee6be8bd8f6ad53b0770af74f000f1.tar.gz |
Resolve dropping-copy-types warning by setting boolean to a ignoredemu-33-dev
varaible instead of dropping. This warning is enforced in Rust 1.71
toolchain.
This change is committed to github but the newer version hasn't been deployed yet.
https://github.com/hyperium/http/commit/7b3c5062cbcdf5194ae70d5f23ceadb68a6bcf34
Test: m libhttp
Change-Id: Iad1968c6eeec7a677edaa4bacf367f01bcd56847
-rw-r--r-- | src/header/map.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/header/map.rs b/src/header/map.rs index 13cbc3a..ed049db 100644 --- a/src/header/map.rs +++ b/src/header/map.rs @@ -1152,7 +1152,7 @@ impl<T> HeaderMap<T> { danger, // Vacant { - drop(danger); // Make lint happy + let _ = danger; // Make lint happy let index = self.entries.len(); self.insert_entry(hash, key.into(), value); self.indices[probe] = Pos::new(index, hash); @@ -1255,7 +1255,7 @@ impl<T> HeaderMap<T> { danger, // Vacant { - drop(danger); + let _ = danger; let index = self.entries.len(); self.insert_entry(hash, key.into(), value); self.indices[probe] = Pos::new(index, hash); |