diff --git a/crates/stdext/src/collections/string.rs b/crates/stdext/src/collections/string.rs index 229396c9072..5da255576ec 100644 --- a/crates/stdext/src/collections/string.rs +++ b/crates/stdext/src/collections/string.rs @@ -190,7 +190,7 @@ impl<'a> BString<'a> { pub fn push_utf16_lossy(&mut self, alloc: &'a dyn Allocator, string: &[u16]) { self.extend( alloc, - char::decode_utf16(string.iter().cloned()) + char::decode_utf16(string.iter().copied()) .map(|r| r.unwrap_or(char::REPLACEMENT_CHARACTER)), ); }