diff options
author | Blaž Hrastnik | 2022-03-28 02:03:42 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-03-28 02:03:42 +0000 |
commit | a516f5881be7e4a4967f7865746c4cbbc8dee2f5 (patch) | |
tree | e4c1c7c59977bb62291db39e0ad0b99b1562e095 /helix-term/src | |
parent | 8611c5b84e2f87ab7708ed3ca91062f08608775d (diff) |
Address clippy lint
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/commands/lsp.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/helix-term/src/commands/lsp.rs b/helix-term/src/commands/lsp.rs index 19d1084e..1db57ecf 100644 --- a/helix-term/src/commands/lsp.rs +++ b/helix-term/src/commands/lsp.rs @@ -71,7 +71,7 @@ fn sym_picker( ) -> FilePicker<lsp::SymbolInformation> { // TODO: drop current_path comparison and instead use workspace: bool flag? let current_path2 = current_path.clone(); - let picker = FilePicker::new( + FilePicker::new( symbols, move |symbol| { if current_path.as_ref() == Some(&symbol.location.uri) { @@ -105,8 +105,7 @@ fn sym_picker( }, move |_editor, symbol| Some(location_to_file_location(&symbol.location)), ) - .truncate_start(false); - picker + .truncate_start(false) } pub fn symbol_picker(cx: &mut Context) { |