chore: Appease clippy

This commit is contained in:
relrelb 2022-07-19 09:09:17 +03:00 committed by relrelb
parent 934cb05371
commit 23fdc2b2ee
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ impl<'gc> QName<'gc> {
pub fn to_qualified_name(self, mc: MutationContext<'gc, '_>) -> AvmString<'gc> { pub fn to_qualified_name(self, mc: MutationContext<'gc, '_>) -> AvmString<'gc> {
let uri = self.namespace().as_uri(); let uri = self.namespace().as_uri();
let name = self.local_name(); let name = self.local_name();
uri.is_empty().then(|| name).unwrap_or_else(|| { uri.is_empty().then_some(name).unwrap_or_else(|| {
let mut buf = WString::from(uri.as_wstr()); let mut buf = WString::from(uri.as_wstr());
buf.push_str(WStr::from_units(b"::")); buf.push_str(WStr::from_units(b"::"));
buf.push_str(&name); buf.push_str(&name);