cleanup
Error::from is already a function taking 1 parameter, there's no need to wrap it with `|e| Error::from(e)`. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
1 parent
8fdef1a81c
commit
fc7f03523c
4 files changed
+5
-5
No files matched your search
+1
-1
@@ -179,7 +179,7 @@ fn proxy_protected_request(
|
||||
|
||||
let resp = hyper::client::Client::new()
|
||||
.request(request)
|
||||
.map_err(|e| Error::from(e))
|
||||
.map_err(Error::from)
|
||||
.map(|mut resp| {
|
||||
resp.extensions_mut().insert(NoLogExtension());
|
||||
resp
|
||||
|
||||
Reference in new issue
Block a user