From dd437a6bab672c276fda9fcbb39ea316e587306e Mon Sep 17 00:00:00 2001 From: k-nasa Date: Fri, 5 Apr 2019 12:09:24 +0900 Subject: [PATCH] refactor: redundant closure found --- actix-http/src/body.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix-http/src/body.rs b/actix-http/src/body.rs index 85717ba85..0d015b2e9 100644 --- a/actix-http/src/body.rs +++ b/actix-http/src/body.rs @@ -359,7 +359,7 @@ where } fn poll_next(&mut self) -> Poll, Error> { - self.stream.poll().map_err(|e| e.into()) + self.stream.poll().map_err(std::convert::Into::into) } }