Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats committed Dec 6, 2024
1 parent 697af5d commit 78c0141
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?
{
Expand Down

0 comments on commit 78c0141

Please sign in to comment.