Skip to content

Commit

Permalink
Suppress unused field in test_borrow_in_map_key
Browse files Browse the repository at this point in the history
    warning: field is never read: `map`
        --> tests/test.rs:2233:9
         |
    2233 |         map: BTreeMap<MyMapKey, ()>,
         |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = note: `#[warn(dead_code)]` on by default
  • Loading branch information
dtolnay committed Sep 14, 2021
1 parent f4fc150 commit ef823af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2230,6 +2230,7 @@ fn test_raw_invalid_utf8() {
fn test_borrow_in_map_key() {
#[derive(Deserialize, Debug)]
struct Outer {
#[allow(dead_code)]
map: BTreeMap<MyMapKey, ()>,
}

Expand Down

0 comments on commit ef823af

Please sign in to comment.