clippy lints

pull/11/head
Blaž Hrastnik 4 years ago
parent 798dbd27c5
commit c4792efead

@ -133,6 +133,7 @@ pub struct Selection {
primary_index: usize, primary_index: usize,
} }
#[allow(clippy::len_without_is_empty)] // a Selection is never empty
impl Selection { impl Selection {
// eq // eq

@ -46,8 +46,8 @@ impl Application {
compositor.push(Box::new(ui::EditorView::new())); compositor.push(Box::new(ui::EditorView::new()));
let mut app = Self { let mut app = Self {
editor,
compositor, compositor,
editor,
executor, executor,
}; };

@ -139,7 +139,7 @@ impl Default for Theme {
let scopes = mapping.keys().map(ToString::to_string).collect(); let scopes = mapping.keys().map(ToString::to_string).collect();
Self { mapping, scopes } Self { scopes, mapping }
} }
} }

Loading…
Cancel
Save