1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-05 07:27:46 +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) move || reader(file, recycled_receiver, loaded_sender, &settings)
}); });
for _ in 0..2 { for _ in 0..2 {
recycled_sender let _ = recycled_sender.send(Chunk::new(vec![0; 100 * 1024], |_| Vec::new()));
.send(Chunk::new(vec![0; 100 * 1024], |_| Vec::new()))
.ok();
} }
let mut prev_chunk: Option<Chunk> = None; let mut prev_chunk: Option<Chunk> = None;
@ -55,7 +53,7 @@ pub fn check(path: &str, settings: &GlobalSettings) -> i32 {
} }
return 1; return 1;
} }
recycled_sender.send(prev_chunk).ok(); let _ = recycled_sender.send(prev_chunk);
} }
for (a, b) in chunk.borrow_lines().iter().tuple_windows() { for (a, b) in chunk.borrow_lines().iter().tuple_windows() {