summaryrefslogtreecommitdiff
path: root/helix-view/src/editor.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-10-23 04:51:08 +0000
committerBlaž Hrastnik2020-12-03 04:10:35 +0000
commiteff6fac9ece0700f0ed8eb0a230b6816fa7cece7 (patch)
tree6f4121fb78ef93258f69aabbdf75e31dc8c5fdf9 /helix-view/src/editor.rs
parentf5981f72c256a834845aad0c2947a4a20fa84d1b (diff)
clippy lint
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r--helix-view/src/editor.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 02199255..9fb2ae36 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -12,6 +12,12 @@ pub struct Editor {
pub theme: Theme, // TODO: share one instance
}
+impl Default for Editor {
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
impl Editor {
pub fn new() -> Self {
let theme = Theme::default();