From 54b6d77a724dda2a37dcdf4113ce3cd289fce968 Mon Sep 17 00:00:00 2001 From: enlorik Date: Sat, 6 Jun 2026 18:30:58 +0200 Subject: [PATCH] Use copied() instead of cloned() for u16 iterator --- crates/stdext/src/collections/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)), ); }