Skip to content

Commit 39457c8

Browse files
committed
Fix clippy: Remove redundant closures
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
1 parent 28dd69f commit 39457c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ impl ConfigBuilder<DefaultState> {
225225
.state
226226
.sources
227227
.into_iter()
228-
.map(|s| SourceType::Sync(s))
228+
.map(SourceType::Sync)
229229
.collect(),
230230
},
231231
defaults: self.defaults,

src/file/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ where
128128
let (uri, contents, format) = match self
129129
.source
130130
.resolve(self.format.clone())
131-
.map_err(|err| ConfigError::Foreign(err))
131+
.map_err(ConfigError::Foreign)
132132
{
133133
Ok(result) => (result.uri, result.content, result.format),
134134

0 commit comments

Comments
 (0)