From 0197246365ae1e2e3f4b7a65481b3e0b8079f9d4 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Fri, 9 Dec 2022 14:57:07 -0800 Subject: [PATCH] Ignore `unused_imports` in tests/snapshots.rs. This is for the same reason that we ignore `dead_code`: // A lot of the code can be unused based on configuration flags, // the corresponding warnings aren't helpful. --- tests/snapshots.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/snapshots.rs b/tests/snapshots.rs index 197a29692f..9336b60c54 100644 --- a/tests/snapshots.rs +++ b/tests/snapshots.rs @@ -1,6 +1,6 @@ // A lot of the code can be unused based on configuration flags, // the corresponding warnings aren't helpful. -#![allow(dead_code)] +#![allow(dead_code, unused_imports)] use std::{ fs,