refactor(lib): replace 'try' macro with '?'

This commit is contained in:
Sean McArthur
2019-01-18 14:29:12 -08:00
parent 6bce753f32
commit c69d1094b3
3 changed files with 7 additions and 4 deletions

View File

@@ -333,7 +333,7 @@ impl<R: Resolve> Future for HttpConnecting<R> {
}
},
State::Resolving(ref mut future, local_addr) => {
match try!(future.poll()) {
match future.poll()? {
Async::NotReady => return Ok(Async::NotReady),
Async::Ready(addrs) => {
let port = self.port;