From 3e838fff106f9dc5bef37b691ade97fb4cd885b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Dzivjak?= Date: Sun, 26 Nov 2023 13:18:44 +0100 Subject: [PATCH] fix lints --- helix-term/src/commands/lsp.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/helix-term/src/commands/lsp.rs b/helix-term/src/commands/lsp.rs index afe777c8c..ef1f07267 100644 --- a/helix-term/src/commands/lsp.rs +++ b/helix-term/src/commands/lsp.rs @@ -1542,8 +1542,6 @@ pub fn request_code_lenses(cx: &mut Context) { request, move |editor, _compositor, lenses: Option>| { if let Some(lenses) = lenses { - log::error!("lenses got: {:?}", lenses); - let doc = doc_mut!(editor, &doc_id); let doc_text = doc.text(); @@ -1556,7 +1554,7 @@ pub fn request_code_lenses(cx: &mut Context) { .map(|l| map_code_lens(doc_text, l, offset_enc, language_server_id)) .collect(); - doc.set_code_lens(lenses.clone()); + doc.set_code_lens(lenses); } else { editor.set_status("no lens found"); }