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) }) } }