From aa21439502f287e95c409c40615c03f196685ce7 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 6 Apr 2021 10:15:14 -0500 Subject: [PATCH] style: Clippy --- src/args.rs | 2 -- src/policy.rs | 5 ++--- 2 files changed, 2 insertions(+), 5 deletions(-) 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 + } } }