diff --git a/src/args.rs b/src/args.rs index dcec8dc..aa8bf00 100644 --- a/src/args.rs +++ b/src/args.rs @@ -141,7 +141,6 @@ impl FileArgs { locale: self.locale, ..Default::default() }), - ..Default::default() } } @@ -241,7 +240,6 @@ impl WalkArgs { ignore_vcs: self.ignore_vcs(), ignore_global: self.ignore_global(), ignore_parent: self.ignore_parent(), - ..Default::default() } } diff --git a/src/policy.rs b/src/policy.rs index bb0d896..cded1c9 100644 --- a/src/policy.rs +++ b/src/policy.rs @@ -208,14 +208,13 @@ impl<'s> ConfigEngine<'s> { let dict = self.dict.intern(dict); let tokenizer = self.tokenizer.intern(tokenizer); - let file = FileConfig { + FileConfig { check_filenames: check_filename, check_files: check_file, binary, tokenizer, dict, - }; - file + } } }