From 6e4105f7e97a1aae9543204d41afd4b7c11b60d4 Mon Sep 17 00:00:00 2001 From: Yacin Tmimi Date: Sun, 7 Apr 2024 22:10:47 -0400 Subject: [PATCH] fix dead code and redundant import warnings We need to allow `StyleEditionDefault` because it will be used to implement `style_edition`, and we didn't need to explicitly import it for tests since it's already imported by `use super::*;`. --- src/config/style_edition.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/style_edition.rs b/src/config/style_edition.rs index 4dd5f0164fa..96e979443ae 100644 --- a/src/config/style_edition.rs +++ b/src/config/style_edition.rs @@ -1,6 +1,7 @@ use crate::config::StyleEdition; /// Defines the default value for the given style edition +#[allow(dead_code)] pub(crate) trait StyleEditionDefault { type ConfigType; fn style_edition_default(style_edition: StyleEdition) -> Self::ConfigType; @@ -39,7 +40,6 @@ macro_rules! style_edition_default { #[cfg(test)] mod test { use super::*; - use crate::config::StyleEdition; #[test] fn test_impl_default_style_edition_struct_for_all_editions() {