From ef53d0c247ad49df0a8bc4cb118d12bf779a66de Mon Sep 17 00:00:00 2001 From: Daniel Jacobs Date: Thu, 26 Dec 2024 20:22:30 -0500 Subject: [PATCH] Revert "chore: Fix a nightly `clippy::unnecessary_map_or` lint" This reverts commit c9a37b2f505b37c406eed59fdae7cdf491a7b653. --- core/src/avm2/e4x.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/avm2/e4x.rs b/core/src/avm2/e4x.rs index d1526b135110..e464cb4fab06 100644 --- a/core/src/avm2/e4x.rs +++ b/core/src/avm2/e4x.rs @@ -1230,7 +1230,7 @@ impl<'gc> E4XNode<'gc> { }; // 2.a. If N.prefix == "" and x.[[Name]].uri == "", return - if prefix.is_empty() && self.namespace().is_none_or(|ns| ns.uri.is_empty()) { + if prefix.is_empty() && self.namespace().map_or(true, |ns| ns.uri.is_empty()) { return; }