chore: Clippy
This commit is contained in:
parent
19605cff45
commit
67dd53ac9f
|
@ -112,9 +112,7 @@ impl WString {
|
||||||
return Self::from_buf(b);
|
return Self::from_buf(b);
|
||||||
}
|
}
|
||||||
|
|
||||||
let is_wide = AvmUtf8Decoder::new(tail)
|
let is_wide = AvmUtf8Decoder::new(tail).any(|ch| ch > u8::MAX.into());
|
||||||
.find(|ch| *ch > u8::MAX.into())
|
|
||||||
.is_some();
|
|
||||||
if is_wide {
|
if is_wide {
|
||||||
let mut buf = Vec::new();
|
let mut buf = Vec::new();
|
||||||
buf.extend(ascii.iter().map(|c| u16::from(*c)));
|
buf.extend(ascii.iter().map(|c| u16::from(*c)));
|
||||||
|
|
Loading…
Reference in New Issue