Unnamed repository; edit this file 'description' to name the repository.
Address clippy lint
Blaž Hrastnik 2021-06-07
parent 4fd38f8 · commit 3cee0bf
-rw-r--r--helix-term/src/ui/editor.rs6
1 files changed, 6 insertions, 0 deletions
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 {