Skip to content

Commit

Permalink
style: Address clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Page committed Apr 10, 2021
1 parent e3c1d23 commit a5975ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ mod test {
let null = Config::default();
let defaulted = Config::from_defaults();

let mut actual = null.clone();
let mut actual = null;
actual.update(&defaulted);

assert_eq!(actual, defaulted);
Expand All @@ -470,7 +470,7 @@ mod test {
..Default::default()
};

let mut actual = null.clone();
let mut actual = null;
actual.update(&extended);

assert_eq!(actual, extended);
Expand All @@ -487,7 +487,7 @@ mod test {
..Default::default()
};

let mut actual = base.clone();
let mut actual = base;
actual.update(&extended);

let expected: Vec<kstring::KString> = vec!["*.foo".into(), "*.bar".into()];
Expand Down
8 changes: 3 additions & 5 deletions src/policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ mod test {

let config = crate::config::Config {
type_: maplit::hashmap! {
type_name.clone() => crate::config::TypeEngineConfig {
type_name => crate::config::TypeEngineConfig {
..Default::default()
},
},
Expand Down Expand Up @@ -448,12 +448,11 @@ mod test {
},
type_: maplit::hashmap! {
type_name.clone() => crate::config::TypeEngineConfig {
extend_glob: vec![type_name.clone()],
extend_glob: vec![type_name],
engine: crate::config::EngineConfig {
binary: Some(false),
..Default::default()
},
..Default::default()
},
},
..Default::default()
Expand Down Expand Up @@ -481,12 +480,11 @@ mod test {
},
type_: maplit::hashmap! {
type_name.clone() => crate::config::TypeEngineConfig {
extend_glob: vec![type_name.clone()],
extend_glob: vec![type_name],
engine: crate::config::EngineConfig {
binary: Some(false),
..Default::default()
},
..Default::default()
},
},
..Default::default()
Expand Down

0 comments on commit a5975ca

Please sign in to comment.