summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/builder.rs2
-rw-r--r--src/file/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/builder.rs b/src/builder.rs
index db6ee2f..547e118 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -225,7 +225,7 @@ impl ConfigBuilder<DefaultState> {
.state
.sources
.into_iter()
- .map(|s| SourceType::Sync(s))
+ .map(SourceType::Sync)
.collect(),
},
defaults: self.defaults,
diff --git a/src/file/mod.rs b/src/file/mod.rs
index b2915a7..0443a04 100644
--- a/src/file/mod.rs
+++ b/src/file/mod.rs
@@ -128,7 +128,7 @@ where
let (uri, contents, format) = match self
.source
.resolve(self.format.clone())
- .map_err(|err| ConfigError::Foreign(err))
+ .map_err(ConfigError::Foreign)
{
Ok(result) => (result.uri, result.content, result.format),