Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
vnt-dev committed Dec 4, 2024
1 parent d379986 commit b5bcb7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl Session {
WaitForMultipleObjects(handles.len() as u32, &handles as _, FALSE, INFINITE)
};
const WAIT_OBJECT_1: WAIT_EVENT = WAIT_OBJECT_0 + 1;
return match result {
match result {
WAIT_FAILED => Err(util::get_last_error()?.into()),
WAIT_OBJECT_0 => {
//We have data!
Expand All @@ -145,7 +145,7 @@ impl Session {
//This should never happen
panic!("WaitForMultipleObjects returned unexpected value {:?}", result);
}
};
}
}

/// Cancels any active calls to [`Session::receive_blocking`] making them instantly return Err(_) so that session can be shutdown cleanly
Expand Down

0 comments on commit b5bcb7e

Please sign in to comment.