From 7e99087fa36fd49b350311ebdbc3b9338794746b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Sat, 19 Nov 2022 15:41:55 +0900 Subject: [PATCH] minor: render_diagnostics doesn't require &self either --- helix-term/src/ui/editor.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 1989e0f89..6c8ee2d95 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -169,7 +169,7 @@ impl EditorView { } } - self.render_diagnostics(doc, view, inner, surface, theme); + Self::render_diagnostics(doc, view, inner, surface, theme); let statusline_area = view .area @@ -765,7 +765,6 @@ impl EditorView { } pub fn render_diagnostics( - &self, doc: &Document, view: &View, viewport: Rect,