From d10bce758fdb80e1ea5f549ddb0b55dbc5a3b60c Mon Sep 17 00:00:00 2001 From: kyfanc Date: Tue, 27 Aug 2024 12:07:54 +0800 Subject: [PATCH] fix area.inner() param type --- helix-term/src/ui/lsp/hover.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-term/src/ui/lsp/hover.rs b/helix-term/src/ui/lsp/hover.rs index fc0539d23..2ad3cbf94 100644 --- a/helix-term/src/ui/lsp/hover.rs +++ b/helix-term/src/ui/lsp/hover.rs @@ -100,7 +100,7 @@ const SEPARATOR_HEIGHT: u16 = 1; impl Component for Hover { fn render(&mut self, area: Rect, surface: &mut Buffer, cx: &mut Context) { let margin = Margin::horizontal(1); - let area = area.inner(&margin); + let area = area.inner(margin); let (Some(header), Some(contents)) = (self.header.as_ref(), self.contents.as_ref()) else { log::info!("markdown not ready");