Skip to content

Commit

Permalink
fix: Correct clippy lint suggestion part deux
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs authored and mingfukuang committed Aug 3, 2024
1 parent 980966c commit 3dff667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/runc-shim/src/cgroup_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pub async fn register_memory_event(
let mut eventfd_file = unsafe { File::from_raw_fd(eventfd.as_raw_fd()) };
loop {
match eventfd_file.read(&mut buf).await {
Ok(bytes_read) if bytes_read == 0 => return,
Ok(0) => return,
Err(_) => return,
_ => (),
}
Expand Down

0 comments on commit 3dff667

Please sign in to comment.