diff --git a/helix-term/src/commands/lsp.rs b/helix-term/src/commands/lsp.rs index e839777355ad..a880c5820ea1 100644 --- a/helix-term/src/commands/lsp.rs +++ b/helix-term/src/commands/lsp.rs @@ -1065,7 +1065,7 @@ pub fn hover_dump(cx: &mut Context) { Document::from(Rope::from(contents), None, editor.config.clone()), ); let (_view, doc) = current!(editor); - if let Ok(_) = doc.set_language_by_language_id("markdown", editor.syn_loader.clone()) {}; + let _ = doc.set_language_by_language_id("markdown", editor.syn_loader.clone()); }) }