mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
Address clippy lint
This commit is contained in:
parent
8611c5b84e
commit
a516f5881b
@ -71,7 +71,7 @@ fn sym_picker(
|
|||||||
) -> FilePicker<lsp::SymbolInformation> {
|
) -> FilePicker<lsp::SymbolInformation> {
|
||||||
// TODO: drop current_path comparison and instead use workspace: bool flag?
|
// TODO: drop current_path comparison and instead use workspace: bool flag?
|
||||||
let current_path2 = current_path.clone();
|
let current_path2 = current_path.clone();
|
||||||
let picker = FilePicker::new(
|
FilePicker::new(
|
||||||
symbols,
|
symbols,
|
||||||
move |symbol| {
|
move |symbol| {
|
||||||
if current_path.as_ref() == Some(&symbol.location.uri) {
|
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)),
|
move |_editor, symbol| Some(location_to_file_location(&symbol.location)),
|
||||||
)
|
)
|
||||||
.truncate_start(false);
|
.truncate_start(false)
|
||||||
picker
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn symbol_picker(cx: &mut Context) {
|
pub fn symbol_picker(cx: &mut Context) {
|
||||||
|
Loading…
Reference in New Issue
Block a user