on master help sign in
Address clippy lint
3cee0bfBlaž Hrastnik
helix-term/src/ui/editor.rs+6
@@ -34,6 +34,12 @@ pub struct EditorView {
34
34
35const OFFSET: u16 = 7; // 1 diagnostic + 5 linenr + 1 gutter
35const OFFSET: u16 = 7; // 1 diagnostic + 5 linenr + 1 gutter
36
36
37+impl Default for EditorView {
38+ fn default() -> Self {
39+ Self::new()
40+ }
41+}
42+
37impl EditorView {
43impl EditorView {
38 pub fn new() -> Self {
44 pub fn new() -> Self {
39 Self {
45 Self {