Skip to content

Commit ef823af

Browse files
committed
Suppress unused field in test_borrow_in_map_key
warning: field is never read: `map` --> tests/test.rs:2233:9 | 2233 | map: BTreeMap<MyMapKey, ()>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
1 parent f4fc150 commit ef823af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: tests/test.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2230,6 +2230,7 @@ fn test_raw_invalid_utf8() {
22302230
fn test_borrow_in_map_key() {
22312231
#[derive(Deserialize, Debug)]
22322232
struct Outer {
2233+
#[allow(dead_code)]
22332234
map: BTreeMap<MyMapKey, ()>,
22342235
}
22352236

0 commit comments

Comments
 (0)