mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-06 00:00:10 +02:00
udp: Fix warning with unused paren (#2219)
Signed-off-by: Lucio Franco <[email protected]>
This commit is contained in:
@@ -42,7 +42,7 @@ impl<C: Decoder> Stream for UdpFramed<C> {
|
|||||||
type Item = (C::Item, SocketAddr);
|
type Item = (C::Item, SocketAddr);
|
||||||
type Error = C::Error;
|
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);
|
self.rd.reserve(INITIAL_RD_CAPACITY);
|
||||||
|
|
||||||
if self.repeat_decode {
|
if self.repeat_decode {
|
||||||
|
|||||||
Reference in New Issue
Block a user