minor: render_diagnostics doesn't require &self either

This commit is contained in:
Blaž Hrastnik 2022-11-19 15:41:55 +09:00
parent a640ab6b1f
commit 7e99087fa3
No known key found for this signature in database
GPG Key ID: 1238B9C4AD889640

View File

@ -169,7 +169,7 @@ pub fn render_view(
}
}
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 @@ pub fn render_gutter(
}
pub fn render_diagnostics(
&self,
doc: &Document,
view: &View,
viewport: Rect,