mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 09:01:04 -05:00
style: Address clippy
This commit is contained in:
parent
e3c1d234f4
commit
a5975ca1ac
2 changed files with 6 additions and 8 deletions
|
@ -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);
|
||||
|
@ -470,7 +470,7 @@ mod test {
|
|||
..Default::default()
|
||||
};
|
||||
|
||||
let mut actual = null.clone();
|
||||
let mut actual = null;
|
||||
actual.update(&extended);
|
||||
|
||||
assert_eq!(actual, extended);
|
||||
|
@ -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()];
|
||||
|
|
|
@ -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()
|
||||
},
|
||||
},
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue