Skip to content

Commit fc6af81

Browse files
committed
Make EncodeWide implement FusedIterator
1 parent 7417110 commit fc6af81

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

library/std/src/sys_common/wtf8.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use crate::char;
2525
use crate::collections::TryReserveError;
2626
use crate::fmt;
2727
use crate::hash::{Hash, Hasher};
28-
use crate::iter::FromIterator;
28+
use crate::iter::{FromIterator, FusedIterator};
2929
use crate::mem;
3030
use crate::ops;
3131
use crate::rc::Rc;
@@ -899,6 +899,9 @@ impl<'a> Iterator for EncodeWide<'a> {
899899
}
900900
}
901901

902+
#[stable(feature = "encode_wide_fused_iterator", since = "1.62.0")]
903+
impl FusedIterator for EncodeWide<'_> {}
904+
902905
impl Hash for CodePoint {
903906
#[inline]
904907
fn hash<H: Hasher>(&self, state: &mut H) {

0 commit comments

Comments
 (0)