diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs index e6431abcf8215..c0a729481121a 100644 --- a/library/std/src/io/mod.rs +++ b/library/std/src/io/mod.rs @@ -2777,6 +2777,7 @@ pub struct Bytes { impl Iterator for Bytes { type Item = Result; + #[inline] fn next(&mut self) -> Option> { let mut byte = 0; loop { @@ -2789,6 +2790,7 @@ impl Iterator for Bytes { } } + #[inline] fn size_hint(&self) -> (usize, Option) { SizeHint::size_hint(&self.inner) }