Skip to content

Commit

Permalink
Cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
Feel-ix-343 committed Dec 7, 2023
1 parent 3b99281 commit b1bfd5f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/references.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use std::path::Path;

use itertools::Itertools;
use tower_lsp::lsp_types::{Position, Location, Url};

use crate::vault::{Vault, Referenceable};
Expand Down Expand Up @@ -30,7 +29,7 @@ pub fn references(vault: &Vault, cursor_position: Position, path: &Path) -> Opti
.flatten();

return match linkable {
Referenceable::File(path, md) => {
Referenceable::File(_, _) => {
return Some(linkable_nodes.iter()
.filter(|&referenceable| !matches!(referenceable, &Referenceable::Tag(_, _)))
.filter_map(|linkable| linkable.get_refname(vault.root_dir()))
Expand Down

0 comments on commit b1bfd5f

Please sign in to comment.