std: Forward ExactSizeIterator::is_empty for Args, ArgsOs iterators
This commit is contained in:
parent
dd3e63aea5
commit
7ba762253c
2 changed files with 3 additions and 0 deletions
|
@ -630,6 +630,7 @@ impl Iterator for Args {
|
|||
#[stable(feature = "env", since = "1.0.0")]
|
||||
impl ExactSizeIterator for Args {
|
||||
fn len(&self) -> usize { self.inner.len() }
|
||||
fn is_empty(&self) -> bool { self.inner.is_empty() }
|
||||
}
|
||||
|
||||
#[stable(feature = "env_iterators", since = "1.11.0")]
|
||||
|
@ -649,6 +650,7 @@ impl Iterator for ArgsOs {
|
|||
#[stable(feature = "env", since = "1.0.0")]
|
||||
impl ExactSizeIterator for ArgsOs {
|
||||
fn len(&self) -> usize { self.inner.len() }
|
||||
fn is_empty(&self) -> bool { self.inner.is_empty() }
|
||||
}
|
||||
|
||||
#[stable(feature = "env_iterators", since = "1.11.0")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue