1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-04 23:17:46 +00:00

refactor/polosh ~ fix cargo clippy complaint (reversed_empty_ranges)

This commit is contained in:
Roy Ivy III 2020-07-24 22:21:20 -05:00
parent d3ef4bd7da
commit 326ff36793

View file

@ -230,7 +230,7 @@ impl Splitter for ByteSplitter {
self.bytes_to_write = self.saved_bytes_to_write;
control.request_new_file = true;
self.require_whole_line = false;
return line[0..0].to_owned();
return "".to_owned();
}
self.bytes_to_write -= n;
if n == 0 {