From 7e99087fa36fd49b350311ebdbc3b9338794746b Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Sat, 19 Nov 2022 15:41:55 +0900 Subject: minor: render_diagnostics doesn't require &self either --- helix-term/src/ui/editor.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'helix-term/src/ui') diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 1989e0f8..6c8ee2d9 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, -- cgit v1.2.3-70-g09d2