From 0c553f958aa32e2ec462b541e29d5154bd9c237b Mon Sep 17 00:00:00 2001 From: Patrick Barrett Date: Sat, 14 Jan 2017 13:00:46 -0600 Subject: [PATCH] return implicitly (rather than both explicitly and implicitly) --- examples/udp-codec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/udp-codec.rs b/examples/udp-codec.rs index 840caa4ac..e7456f71c 100644 --- a/examples/udp-codec.rs +++ b/examples/udp-codec.rs @@ -30,7 +30,7 @@ impl UdpCodec for LineCodec { fn encode(&mut self, (addr, buf): Self::Out, into: &mut Vec) -> SocketAddr { into.extend(buf); - return addr + addr } }