Skip to content

Commit

Permalink
clippy unused_io_amount
Browse files Browse the repository at this point in the history
  • Loading branch information
allan2 committed Sep 17, 2024
1 parent a82e14c commit 9807cf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ mod tests {
slice::from_raw_parts(&event as *const _ as *const u8, mem::size_of_val(&event))
};
(&mut buffer[..])
.write(event)
.write_all(event)
.expect("Failed to write into buffer");

// After that event, simulate an event that starts with a non-zero byte.
Expand Down
2 changes: 1 addition & 1 deletion tests/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,6 @@ impl TestDir {
}

fn write_to(file: &mut File) {
file.write(b"This should trigger an inotify event.")
file.write_all(b"This should trigger an inotify event.")
.unwrap_or_else(|error| panic!("Failed to write to file: {}", error));
}

0 comments on commit 9807cf0

Please sign in to comment.