From d8697a892772d41ebad6e61bd0c5ac2cd0846a4e Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 6 Oct 2023 15:04:30 +0200 Subject: [PATCH] Fix clippy: Remove redundant closures Signed-off-by: Matthias Beyer --- examples/async_source/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/async_source/main.rs b/examples/async_source/main.rs index f5459b91..07685ac9 100644 --- a/examples/async_source/main.rs +++ b/examples/async_source/main.rs @@ -68,7 +68,7 @@ impl AsyncSource for HttpSource { .and_then(|text| { self.format .parse(Some(&self.uri), &text) - .map_err(|e| ConfigError::Foreign(e)) + .map_err(ConfigError::Foreign) }) } }