From ef823af7d5d6c67b06988c50d9a2dfcba9c9e247 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 14 Sep 2021 12:49:58 -0700 Subject: [PATCH] Suppress unused field in test_borrow_in_map_key warning: field is never read: `map` --> tests/test.rs:2233:9 | 2233 | map: BTreeMap, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default --- tests/test.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test.rs b/tests/test.rs index 3d701d827..2df6d42b4 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -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, }