From 28029dcd070bb877091d157a98cc0020972ae15a Mon Sep 17 00:00:00 2001 From: kyfanc Date: Tue, 27 Aug 2024 12:31:14 +0800 Subject: [PATCH] format code --- helix-term/src/ui/lsp/hover.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/helix-term/src/ui/lsp/hover.rs b/helix-term/src/ui/lsp/hover.rs index 2ad3cbf94..f4610d523 100644 --- a/helix-term/src/ui/lsp/hover.rs +++ b/helix-term/src/ui/lsp/hover.rs @@ -44,8 +44,12 @@ impl Hover { fn prepare_markdowns(&mut self) { let Some((lsp_name, hover)) = self.hovers.get(self.active_index) else { - log::info!("prepare_markdowns: failed \nindex:{}\ncount:{}", self.active_index, self.hovers.len()); - return + log::info!( + "prepare_markdowns: failed \nindex:{}\ncount:{}", + self.active_index, + self.hovers.len() + ); + return; }; self.header = Some(Markdown::new( format!( @@ -136,7 +140,7 @@ impl Component for Hover { let max_text_width = viewport.0.saturating_sub(PADDING).clamp(10, 120); let (Some(header), Some(contents)) = (self.header.as_ref(), self.contents.as_ref()) else { - log::info!("markdown not ready"); + log::info!("markdown not ready"); return None; };