Address clippy lint
commit3cee0bf200b2785022398867c11455378c29e9fa
authorBlaž Hrastnik <blaz@mxxn.io>
dateMon 7 Jun 2021, 23:08 (5 years ago)
parent4fd38f8
helix-term/src/ui/editor.rs+6
@@ -34,6 +34,12 @@ pub struct EditorView {
3434
3535const OFFSET: u16 = 7; // 1 diagnostic + 5 linenr + 1 gutter
3636
37+impl Default for EditorView {
38+ fn default() -> Self {
39+ Self::new()
40+ }
41+}
42+
3743impl EditorView {
3844 pub fn new() -> Self {
3945 Self {