Skip to content

Commit d8697a8

Browse files
committed
Fix clippy: Remove redundant closures
Signed-off-by: Matthias Beyer <[email protected]>
1 parent 1c9f282 commit d8697a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/async_source/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl<F: Format + Send + Sync + Debug> AsyncSource for HttpSource<F> {
6868
.and_then(|text| {
6969
self.format
7070
.parse(Some(&self.uri), &text)
71-
.map_err(|e| ConfigError::Foreign(e))
71+
.map_err(ConfigError::Foreign)
7272
})
7373
}
7474
}

0 commit comments

Comments
 (0)