clippy lints

This commit is contained in:
Blaž Hrastnik 2021-03-22 12:26:04 +09:00
parent 798dbd27c5
commit c4792efead
3 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -46,8 +46,8 @@ pub fn new(mut args: Args, executor: &'static smol::Executor<'static>) -> Result
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,
}; };

View File

@ -139,7 +139,7 @@ fn default() -> Self {
let scopes = mapping.keys().map(ToString::to_string).collect(); let scopes = mapping.keys().map(ToString::to_string).collect();
Self { mapping, scopes } Self { scopes, mapping }
} }
} }