From 2a58d86b5c740e1caf09cd14cc80d685488ec7a3 Mon Sep 17 00:00:00 2001 From: _ <> Date: Sun, 18 Jul 2021 23:16:44 +0000 Subject: [PATCH] :bug: bug: use Result --- prototypes/quic_demo/src/protocol.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prototypes/quic_demo/src/protocol.rs b/prototypes/quic_demo/src/protocol.rs index cad684b..9abb0e4 100644 --- a/prototypes/quic_demo/src/protocol.rs +++ b/prototypes/quic_demo/src/protocol.rs @@ -289,7 +289,7 @@ pub async fn p4_expect_p5_request ( bail! ("P4 expected CONNECT_P2_TO_P5 but P2 sent something different"); } let mut port_buf = [0, 0]; - recv.read_exact (&mut port_buf).await; + recv.read_exact (&mut port_buf).await?; let port = u16::from_le_bytes (port_buf); Ok (P2ConnectToP5Request {