Skip to content

Commit 6e4105f

Browse files
committed
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::*;`.
1 parent 1ed0da9 commit 6e4105f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config/style_edition.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use crate::config::StyleEdition;
22

33
/// Defines the default value for the given style edition
4+
#[allow(dead_code)]
45
pub(crate) trait StyleEditionDefault {
56
type ConfigType;
67
fn style_edition_default(style_edition: StyleEdition) -> Self::ConfigType;
@@ -39,7 +40,6 @@ macro_rules! style_edition_default {
3940
#[cfg(test)]
4041
mod test {
4142
use super::*;
42-
use crate::config::StyleEdition;
4343

4444
#[test]
4545
fn test_impl_default_style_edition_struct_for_all_editions() {

0 commit comments

Comments
 (0)