Skip to content

Commit dd3e63a

Browse files
committed
core: Forward ExactSizeIterator::is_empty for Bytes
1 parent 2cdbd5e commit dd3e63a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libcore/str/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,11 @@ impl<'a> ExactSizeIterator for Bytes<'a> {
618618
fn len(&self) -> usize {
619619
self.0.len()
620620
}
621+
622+
#[inline]
623+
fn is_empty(&self) -> bool {
624+
self.0.is_empty()
625+
}
621626
}
622627

623628
#[unstable(feature = "fused", issue = "35602")]

0 commit comments

Comments
 (0)