fix: Correct clippy lint suggestion part deux
This commit is contained in:
parent
150ec63cbc
commit
e771f15ce2
|
|
@ -112,7 +112,7 @@ pub async fn register_memory_event(
|
||||||
let mut eventfd_file = unsafe { File::from_raw_fd(eventfd.as_raw_fd()) };
|
let mut eventfd_file = unsafe { File::from_raw_fd(eventfd.as_raw_fd()) };
|
||||||
loop {
|
loop {
|
||||||
match eventfd_file.read(&mut buf).await {
|
match eventfd_file.read(&mut buf).await {
|
||||||
Ok(bytes_read) if bytes_read == 0 => return,
|
Ok(0) => return,
|
||||||
Err(_) => return,
|
Err(_) => return,
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue