Skip to content

Commit

Permalink
chore: Fix a nightly clippy::unnecessary_map_or lint
Browse files Browse the repository at this point in the history
  • Loading branch information
torokati44 committed Dec 26, 2024
1 parent e1ad029 commit c9a37b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/avm2/e4x.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ impl<'gc> E4XNode<'gc> {
};

// 2.a. If N.prefix == "" and x.[[Name]].uri == "", return
if prefix.is_empty() && self.namespace().map_or(true, |ns| ns.uri.is_empty()) {
if prefix.is_empty() && self.namespace().is_none_or(|ns| ns.uri.is_empty()) {
return;
}

Expand Down

0 comments on commit c9a37b2

Please sign in to comment.