Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanDebrunner committed Nov 19, 2023
1 parent 7354428 commit 2f63e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion refbox/src/sim_app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ impl<H: Hasher, I> Recipe<H, I> 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));
Expand Down

0 comments on commit 2f63e6d

Please sign in to comment.