about summary refs log tree commit diff
path: root/library/core/src/str/iter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/core/src/str/iter.rs')
-rw-r--r--library/core/src/str/iter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/str/iter.rs b/library/core/src/str/iter.rs
index d2180fa83fb..00b4405faae 100644
--- a/library/core/src/str/iter.rs
+++ b/library/core/src/str/iter.rs
@@ -96,7 +96,7 @@ impl<'a> Iterator for Chars<'a> {
             unsafe { self.iter.advance_by(slurp).unwrap_unchecked() };
         }
 
-        NonZero::<usize>::new(remainder).map_or(Ok(()), Err)
+        NonZero::new(remainder).map_or(Ok(()), Err)
     }
 
     #[inline]