udp: Fix warning with unused paren (#2219)

Signed-off-by: Lucio Franco <[email protected]>
This commit is contained in:
Lucio Franco
2020-02-04 18:48:36 -05:00
committed by GitHub
parent 8fddd4cb86
commit 367511dc6b
+1 -1
View File
@@ -42,7 +42,7 @@ impl<C: Decoder> Stream for UdpFramed<C> {
type Item = (C::Item, SocketAddr);
type Error = C::Error;
fn poll(&mut self) -> Poll<Option<(Self::Item)>, Self::Error> {
fn poll(&mut self) -> Poll<Option<Self::Item>, Self::Error> {
self.rd.reserve(INITIAL_RD_CAPACITY);
if self.repeat_decode {