mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
return implicitly (rather than both explicitly and implicitly)
This commit is contained in:
@@ -30,7 +30,7 @@ impl UdpCodec for LineCodec {
|
|||||||
|
|
||||||
fn encode(&mut self, (addr, buf): Self::Out, into: &mut Vec<u8>) -> SocketAddr {
|
fn encode(&mut self, (addr, buf): Self::Out, into: &mut Vec<u8>) -> SocketAddr {
|
||||||
into.extend(buf);
|
into.extend(buf);
|
||||||
return addr
|
addr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user