From 3cee0bf200b2785022398867c11455378c29e9fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Mon, 7 Jun 2021 23:08:51 +0900 Subject: [PATCH] Address clippy lint --- helix-term/src/ui/editor.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 4f485ed2e..c34b6cb65 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -34,6 +34,12 @@ pub struct EditorView { const OFFSET: u16 = 7; // 1 diagnostic + 5 linenr + 1 gutter +impl Default for EditorView { + fn default() -> Self { + Self::new() + } +} + impl EditorView { pub fn new() -> Self { Self {