Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
matoous committed Jul 18, 2024
1 parent 8376d84 commit 3e838ff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions helix-term/src/commands/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1542,8 +1542,6 @@ pub fn request_code_lenses(cx: &mut Context) {
request,
move |editor, _compositor, lenses: Option<Vec<lsp::CodeLens>>| {
if let Some(lenses) = lenses {
log::error!("lenses got: {:?}", lenses);

let doc = doc_mut!(editor, &doc_id);
let doc_text = doc.text();

Expand All @@ -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");
}
Expand Down

0 comments on commit 3e838ff

Please sign in to comment.