aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-06-07 14:08:51 +0000
committerBlaž Hrastnik2021-06-07 14:08:51 +0000
commit3cee0bf200b2785022398867c11455378c29e9fa (patch)
tree5a9f981ad78a9ffc84fe458985d6739760ed3ab6 /helix-term
parent4fd38f82a36f9874219b5169488133d97cc5e66c (diff)
Address clippy lint
Diffstat (limited to 'helix-term')
-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 {