refactor: redundant closure found

This commit is contained in:
k-nasa 2019-04-05 12:09:24 +09:00
parent 1dc8cf6ad5
commit dd437a6bab
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ where
} }
fn poll_next(&mut self) -> Poll<Option<Bytes>, Error> { fn poll_next(&mut self) -> Poll<Option<Bytes>, Error> {
self.stream.poll().map_err(|e| e.into()) self.stream.poll().map_err(std::convert::Into::into)
} }
} }