From 3b611b619a1c66337a3a5178cab41eee09f425c3 Mon Sep 17 00:00:00 2001 From: JoshuaBatty Date: Wed, 27 Nov 2024 10:32:15 +1100 Subject: [PATCH] clippy --- sway-lsp/src/capabilities/document_symbol.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway-lsp/src/capabilities/document_symbol.rs b/sway-lsp/src/capabilities/document_symbol.rs index 2fc2c0adcb5..213c90ca826 100644 --- a/sway-lsp/src/capabilities/document_symbol.rs +++ b/sway-lsp/src/capabilities/document_symbol.rs @@ -22,7 +22,7 @@ pub fn to_document_symbols( engines: &Engines, token_map: &TokenMap, ) -> Vec { - let source_id = engines.se().get_source_id(&path); + let source_id = engines.se().get_source_id(path); // Find if there is a configurable symbol in the token map that belongs to the current file // We will add children symbols to this when we encounter a configurable declarations below.