on master help sign in
clippy lints
c4792efBlaž Hrastnik
helix-core/src/selection.rs+1
@@ -133,6 +133,7 @@ pub struct Selection {
133 primary_index: usize,
133 primary_index: usize,
134}
134}
135
135
136+#[allow(clippy::len_without_is_empty)] // a Selection is never empty
136impl Selection {
137impl Selection {
137 // eq
138 // eq
138
139
helix-term/src/application.rs+1−1
@@ -46,8 +46,8 @@ impl Application {
46 compositor.push(Box::new(ui::EditorView::new()));
46 compositor.push(Box::new(ui::EditorView::new()));
47
47
48 let mut app = Self {
48 let mut app = Self {
49− editor,
50 compositor,
49 compositor,
50+ editor,
51
51
52 executor,
52 executor,
53 };
53 };
helix-view/src/theme.rs+1−1
@@ -139,7 +139,7 @@ impl Default for Theme {
139
139
140 let scopes = mapping.keys().map(ToString::to_string).collect();
140 let scopes = mapping.keys().map(ToString::to_string).collect();
141
141
142− Self { mapping, scopes }
142+ Self { scopes, mapping }
143 }
143 }
144}
144}
145
145