From 78c01412277f44f2a6164ecc7a56935f9e8608d7 Mon Sep 17 00:00:00 2001 From: crowlkats Date: Fri, 6 Dec 2024 15:28:08 +0100 Subject: [PATCH] clean --- src/parser.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/parser.rs b/src/parser.rs index 3e6dfa78..354f7d32 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -237,10 +237,7 @@ impl<'a> DocParser<'a> { namespace_def.elements = nodes.into_iter().map(Rc::new).collect(); } DocNodeDef::Reference { reference_def } => { - if !all_locations - .iter() - .any(|location| location == &reference_def.target) - { + if !all_locations.contains(&reference_def.target) { if let Some(new_nodes) = self.resolve_reference(specifier, reference_def)? {