Skip to content

Commit

Permalink
chore: fix lint about dropping Copy values
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed May 15, 2023
1 parent 3a2f3e0 commit 7b3c506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/header/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 7b3c506

Please sign in to comment.