1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-03 06:27:45 +00:00

sort: better convey that the return value should be ignored

This commit is contained in:
Michael Debertol 2021-06-14 11:22:26 +02:00
parent 6979b707c0
commit 4bd556d58e

View file

@ -34,9 +34,7 @@ pub fn check(path: &str, settings: &GlobalSettings) -> i32 {
move || reader(file, recycled_receiver, loaded_sender, &settings)
});
for _ in 0..2 {
recycled_sender
.send(Chunk::new(vec![0; 100 * 1024], |_| Vec::new()))
.ok();
let _ = recycled_sender.send(Chunk::new(vec![0; 100 * 1024], |_| Vec::new()));
}
let mut prev_chunk: Option<Chunk> = None;
@ -55,7 +53,7 @@ pub fn check(path: &str, settings: &GlobalSettings) -> i32 {
}
return 1;
}
recycled_sender.send(prev_chunk).ok();
let _ = recycled_sender.send(prev_chunk);
}
for (a, b) in chunk.borrow_lines().iter().tuple_windows() {