Skip to content

Commit

Permalink
Make EncodeWide implement FusedIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
AronParker committed Apr 25, 2022
1 parent 7417110 commit fc6af81
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion library/std/src/sys_common/wtf8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use crate::char;
use crate::collections::TryReserveError;
use crate::fmt;
use crate::hash::{Hash, Hasher};
use crate::iter::FromIterator;
use crate::iter::{FromIterator, FusedIterator};
use crate::mem;
use crate::ops;
use crate::rc::Rc;
Expand Down Expand Up @@ -899,6 +899,9 @@ impl<'a> Iterator for EncodeWide<'a> {
}
}

#[stable(feature = "encode_wide_fused_iterator", since = "1.62.0")]
impl FusedIterator for EncodeWide<'_> {}

impl Hash for CodePoint {
#[inline]
fn hash<H: Hasher>(&self, state: &mut H) {
Expand Down

0 comments on commit fc6af81

Please sign in to comment.