Skip to content

Commit

Permalink
Handle warning about non-binding assignment to a Drop instance
Browse files Browse the repository at this point in the history
  • Loading branch information
martinthomson committed Feb 27, 2025
1 parent dc6db1a commit 9399e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bhttp/src/rw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ mod test {
#[test]
#[should_panic(expected = "varint value too large")]
fn too_big() {
_ = write_varint(0x4000_0000_0000_0000_u64, &mut Vec::new());
std::mem::drop(write_varint(0x4000_0000_0000_0000_u64, &mut Vec::new()));
}

#[test]
Expand Down

0 comments on commit 9399e39

Please sign in to comment.