Skip to content

Commit e771f15

Browse files
bryantbiggsmxpv
authored andcommitted
fix: Correct clippy lint suggestion part deux
1 parent 150ec63 commit e771f15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/runc-shim/src/cgroup_memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub async fn register_memory_event(
112112
let mut eventfd_file = unsafe { File::from_raw_fd(eventfd.as_raw_fd()) };
113113
loop {
114114
match eventfd_file.read(&mut buf).await {
115-
Ok(bytes_read) if bytes_read == 0 => return,
115+
Ok(0) => return,
116116
Err(_) => return,
117117
_ => (),
118118
}

0 commit comments

Comments
 (0)