Skip to content

Commit

Permalink
fix dead code and redundant import warnings
Browse files Browse the repository at this point in the history
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::*;`.
  • Loading branch information
ytmimi committed Apr 8, 2024
1 parent 1ed0da9 commit 6e4105f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/style_edition.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 6e4105f

Please sign in to comment.