mirror of
https://github.com/helix-editor/helix.git
synced 2024-09-11 10:55:45 +03:00
fix lints
This commit is contained in:
parent
8376d847d0
commit
3e838fff10
@ -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();
|
||||
|
||||
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user