Skip to content

Commit

Permalink
Fix formatting on mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavientois committed Jan 31, 2021
1 parent 81aba38 commit fc9cd4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/std/src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2244,15 +2244,14 @@ impl<T, U> SizeHint for Chain<T, U> {
SizeHint::lower_bound(&self.first) + SizeHint::lower_bound(&self.second)
}

fn upper_bound(&self) -> Option<usize > {
fn upper_bound(&self) -> Option<usize> {
match (SizeHint::upper_bound(&self.first), SizeHint::upper_bound(&self.second)) {
(Some(first), Some(second)) => Some(first + second),
_ => None,
}
}
}


/// Reader adaptor which limits the bytes read from an underlying reader.
///
/// This struct is generally created by calling [`take`] on a reader.
Expand Down

0 comments on commit fc9cd4a

Please sign in to comment.