Skip to content

Commit 382dacf

Browse files
committed
Remove ExactSizeIterator::is_empty (See #41)
It seems we have no easy way to detect the use of the unstable feature "exact_size_is_empty", and this function is not required since it defaults to checking if `.len() == 0`. Additionally, this function is not used, so removing it.
1 parent 6d07d8f commit 382dacf

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/asn1_types/oid.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,6 @@ impl<'a, N: Repr> ExactSizeIterator for SubIdentifierIterator<'a, N> {
366366
.count()
367367
}
368368
}
369-
370-
#[cfg(feature = "exact_size_is_empty")]
371-
fn is_empty(&self) -> bool {
372-
self.oid.asn1.is_empty()
373-
}
374369
}
375370

376371
impl<'a> fmt::Display for Oid<'a> {

0 commit comments

Comments
 (0)