on master help sign in
Address clippy lint
a516f58Blaž Hrastnik
helix-term/src/commands/lsp.rs+2−3
@@ -71,7 +71,7 @@ fn sym_picker(
71) -> FilePicker<lsp::SymbolInformation> {
71) -> FilePicker<lsp::SymbolInformation> {
72 // TODO: drop current_path comparison and instead use workspace: bool flag?
72 // TODO: drop current_path comparison and instead use workspace: bool flag?
73 let current_path2 = current_path.clone();
73 let current_path2 = current_path.clone();
74− let picker = FilePicker::new(
74+ FilePicker::new(
75 symbols,
75 symbols,
76 move |symbol| {
76 move |symbol| {
77 if current_path.as_ref() == Some(&symbol.location.uri) {
77 if current_path.as_ref() == Some(&symbol.location.uri) {
@@ -105,8 +105,7 @@ fn sym_picker(
105 },
105 },
106 move |_editor, symbol| Some(location_to_file_location(&symbol.location)),
106 move |_editor, symbol| Some(location_to_file_location(&symbol.location)),
107 )
107 )
108− .truncate_start(false);
108+ .truncate_start(false)
109− picker
110}
109}
111
110
112pub fn symbol_picker(cx: &mut Context) {
111pub fn symbol_picker(cx: &mut Context) {