From 3cee0bf200b2785022398867c11455378c29e9fa Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Mon, 7 Jun 2021 23:08:51 +0900 Subject: Address clippy lint --- helix-term/src/ui/editor.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'helix-term/src') diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 4f485ed2..c34b6cb6 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 { -- cgit v1.2.3-70-g09d2