on master help sign in
clippy lints
commitc4792efead160859d17f8ca969869037b7d2e1d5 authorBlaž Hrastnik <blaz@mxxn.io> dateMon 22 Mar 2021, 12:26 (6 years ago) parent798dbd2
3 files changed+3−2
helix-core/src/selection.rs+1 helix-term/src/application.rs+1−1 helix-view/src/theme.rs+1−1
helix-core/src/selection.rs+1
@@ -133,6 +133,7 @@ pub struct Selection {
133133 primary_index: usize,
134134}
135135
136+#[allow(clippy::len_without_is_empty)] // a Selection is never empty
136137impl Selection {
137138 // eq
138139
helix-term/src/application.rs+1−1
@@ -46,8 +46,8 @@ impl Application {
4646 compositor.push(Box::new(ui::EditorView::new()));
4747
4848 let mut app = Self {
49− editor,
5049 compositor,
50+ editor,
5151
5252 executor,
5353 };
helix-view/src/theme.rs+1−1
@@ -139,7 +139,7 @@ impl Default for Theme {
139139
140140 let scopes = mapping.keys().map(ToString::to_string).collect();
141141
142− Self { mapping, scopes }
142+ Self { scopes, mapping }
143143 }
144144}
145145