From af50ca9fcbddff3d60fbbe965ffbeabd24a19ca0 Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Tue, 30 Apr 2019 13:35:11 +0200 Subject: [PATCH] Be forward compatible with rust-lang/rust#59928 --- http/src/handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/src/handler.rs b/http/src/handler.rs index aebd2547e..78ba828ad 100644 --- a/http/src/handler.rs +++ b/http/src/handler.rs @@ -121,7 +121,7 @@ impl> Future for Handler { type Item = hyper::Response; type Error = hyper::Error; - fn poll(&mut self) -> Poll { + fn poll(&mut self) -> Poll { match *self { Handler::Rpc(ref mut handler) => handler.poll(), Handler::Middleware(ref mut middleware) => middleware.poll(),