From a931ec08bd3adaa8be9d02165bd6ebd897ffbfb2 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 25 Aug 2022 16:33:59 +0100 Subject: [PATCH] tor-config: tests: Apply standard lint block in sources.rs Fixes a spurious clippy warning on nightly, about a dbg! --- crates/tor-config/src/sources.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/tor-config/src/sources.rs b/crates/tor-config/src/sources.rs index d8af66b07..361492f6e 100644 --- a/crates/tor-config/src/sources.rs +++ b/crates/tor-config/src/sources.rs @@ -395,7 +395,15 @@ fn is_syntactically_directory(p: &Path) -> bool { #[cfg(test)] mod test { + // @@ begin test lint list maintained by maint/add_warning @@ + #![allow(clippy::bool_assert_comparison)] + #![allow(clippy::clone_on_copy)] + #![allow(clippy::dbg_macro)] + #![allow(clippy::print_stderr)] + #![allow(clippy::print_stdout)] #![allow(clippy::unwrap_used)] + //! + use super::*; use itertools::Itertools; use tempfile::tempdir;