From 2f63e6d83abb804528180de0f6301f9df4288847 Mon Sep 17 00:00:00 2001 From: Tristan Debrunner Date: Sat, 18 Nov 2023 19:00:16 -0800 Subject: [PATCH] Clippy fixes --- refbox/src/sim_app/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/refbox/src/sim_app/mod.rs b/refbox/src/sim_app/mod.rs index 80cc8599..2d774b04 100644 --- a/refbox/src/sim_app/mod.rs +++ b/refbox/src/sim_app/mod.rs @@ -210,7 +210,7 @@ impl Recipe for SnapshotListener { match state.stream.as_mut().unwrap().read(&mut buffer).await { Ok(val) if val == TransmittedData::ENCODED_LEN => {} - Ok(val) if val == 0 => { + Ok(0) => { error!("Sim: TCP connection closed, stopping"); state.stop = true; return Some((Message::Stop, state));