fix: Correct clippy lint suggestion part deux

This commit is contained in:
Bryant Biggs 2024-07-30 09:23:54 -04:00 committed by Maksym Pavlenko
parent 150ec63cbc
commit e771f15ce2
1 changed files with 1 additions and 1 deletions

View File

@ -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,
_ => (), _ => (),
} }