summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2023-10-06 15:04:30 +0200
committerMatthias Beyer <mail@beyermatthias.de>2023-10-06 16:20:20 +0200
commitd8697a892772d41ebad6e61bd0c5ac2cd0846a4e (patch)
tree38c8a7c465895862ab63d495a3ab875e897140f5
parent1c9f282b47fd3b2545fa9fb612048d01e21e8ebf (diff)
Fix clippy: Remove redundant closures
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--examples/async_source/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/async_source/main.rs b/examples/async_source/main.rs
index f5459b9..07685ac 100644
--- a/examples/async_source/main.rs
+++ b/examples/async_source/main.rs
@@ -68,7 +68,7 @@ impl<F: Format + Send + Sync + Debug> AsyncSource for HttpSource<F> {
.and_then(|text| {
self.format
.parse(Some(&self.uri), &text)
- .map_err(|e| ConfigError::Foreign(e))
+ .map_err(ConfigError::Foreign)
})
}
}