core: Forward ExactSizeIterator::is_empty for Bytes
This commit is contained in:
parent
2cdbd5eb42
commit
dd3e63aea5
@ -618,6 +618,11 @@ impl<'a> ExactSizeIterator for Bytes<'a> {
|
||||
fn len(&self) -> usize {
|
||||
self.0.len()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn is_empty(&self) -> bool {
|
||||
self.0.is_empty()
|
||||
}
|
||||
}
|
||||
|
||||
#[unstable(feature = "fused", issue = "35602")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user