util: fix typo in udp/frame.rs (#3154)

This commit is contained in:
cssivision
2020-11-20 15:06:14 +09:00
committed by GitHub
parent 479c545c20
commit 49abfdb2ac
+1 -1
View File
@@ -56,7 +56,7 @@ impl<C: Decoder + Unpin> Stream for UdpFramed<C> {
pin.rd.reserve(INITIAL_RD_CAPACITY);
loop {
// Are there are still bytes left in the read buffer to decode?
// Are there still bytes left in the read buffer to decode?
if pin.is_readable {
if let Some(frame) = pin.codec.decode_eof(&mut pin.rd)? {
let current_addr = pin