Skip to content

Commit

Permalink
tail: Compact some match arms in unbounded_tail
Browse files Browse the repository at this point in the history
  • Loading branch information
Joining7943 committed Sep 13, 2022
1 parent 7f42e2c commit e99fecc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uu/tail/src/tail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ fn unbounded_tail<T: Read>(reader: &mut BufReader<T>, settings: &Settings) -> UR
chunks.fill(reader)?;
chunks.print(writer)?;
}
FilterMode::Lines(Signum::PlusZero, _) | FilterMode::Lines(Signum::Positive(1), _) => {
FilterMode::Lines(Signum::PlusZero | Signum::Positive(1), _) => {
io::copy(reader, &mut writer)?;
}
FilterMode::Lines(Signum::Positive(count), sep) => {
Expand All @@ -450,7 +450,7 @@ fn unbounded_tail<T: Read>(reader: &mut BufReader<T>, settings: &Settings) -> UR
chunks.fill(reader)?;
chunks.print(writer)?;
}
FilterMode::Bytes(Signum::PlusZero) | FilterMode::Bytes(Signum::Positive(1)) => {
FilterMode::Bytes(Signum::PlusZero | Signum::Positive(1)) => {
io::copy(reader, &mut writer)?;
}
FilterMode::Bytes(Signum::Positive(count)) => {
Expand Down

0 comments on commit e99fecc

Please sign in to comment.