Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
matoous committed Nov 26, 2023
1 parent aafe875 commit 0b6f483
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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 @@ -1777,8 +1777,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 @@ -1787,7 +1785,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
2 changes: 1 addition & 1 deletion helix-view/src/gutter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub fn diagnostic<'doc>(
}) {
return Some(style);
};
if let Some(_) = lenses.iter().find(|l| l.line == line) {
if lenses.iter().any(|l| l.line == line) {
write!(out, "▶").ok();
return Some(info);
}
Expand Down

0 comments on commit 0b6f483

Please sign in to comment.