on master help sign in
Address clippy lint
commita516f5881be7e4a4967f7865746c4cbbc8dee2f5 authorBlaž Hrastnik <blaz@mxxn.io> dateMon 28 Mar 2022, 11:03 (5 years ago) parent8611c5b
1 file changed+2−3
helix-term/src/commands/lsp.rs+2−3
helix-term/src/commands/lsp.rs+2−3
@@ -71,7 +71,7 @@ fn sym_picker(
7171) -> FilePicker<lsp::SymbolInformation> {
7272 // TODO: drop current_path comparison and instead use workspace: bool flag?
7373 let current_path2 = current_path.clone();
74− let picker = FilePicker::new(
74+ FilePicker::new(
7575 symbols,
7676 move |symbol| {
7777 if current_path.as_ref() == Some(&symbol.location.uri) {
@@ -105,8 +105,7 @@ fn sym_picker(
105105 },
106106 move |_editor, symbol| Some(location_to_file_location(&symbol.location)),
107107 )
108− .truncate_start(false);
109− picker
108+ .truncate_start(false)
110109}
111110
112111pub fn symbol_picker(cx: &mut Context) {