Skip to content

Commit

Permalink
split: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhitkoff committed Oct 18, 2023
1 parent ec7fad3 commit 884251c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/uu/split/src/split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,6 @@ impl<'a> Write for LineBytesChunkWriter<'a> {
{
self.num_bytes_remaining_in_current_chunk = 0;
} else {
// let num_bytes_written = self.inner.write(&buf[..end.min(buf.len())])?;
let num_bytes_written = custom_write(
&buf[..end.min(buf.len())],
&mut self.inner,
Expand All @@ -1333,7 +1332,6 @@ impl<'a> Write for LineBytesChunkWriter<'a> {
// continue to the next iteration. (See chunk 1 in the
// example comment above.)
Some(i) if i < self.num_bytes_remaining_in_current_chunk => {
// let num_bytes_written = self.inner.write(&buf[..i + 1])?;
let num_bytes_written =
custom_write(&buf[..i + 1], &mut self.inner, self.settings)?;
self.num_bytes_remaining_in_current_chunk -= num_bytes_written;
Expand All @@ -1353,7 +1351,6 @@ impl<'a> Write for LineBytesChunkWriter<'a> {
== self.chunk_size.try_into().unwrap() =>
{
let end = self.num_bytes_remaining_in_current_chunk;
// let num_bytes_written = self.inner.write(&buf[..end])?;
let num_bytes_written =
custom_write(&buf[..end], &mut self.inner, self.settings)?;
self.num_bytes_remaining_in_current_chunk -= num_bytes_written;
Expand Down

0 comments on commit 884251c

Please sign in to comment.