mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-19 13:37:06 +04:00
clippy lints
This commit is contained in:
parent
798dbd27c5
commit
c4792efead
@ -133,6 +133,7 @@ pub struct Selection {
|
||||
primary_index: usize,
|
||||
}
|
||||
|
||||
#[allow(clippy::len_without_is_empty)] // a Selection is never empty
|
||||
impl Selection {
|
||||
// eq
|
||||
|
||||
|
@ -46,8 +46,8 @@ pub fn new(mut args: Args, executor: &'static smol::Executor<'static>) -> Result
|
||||
compositor.push(Box::new(ui::EditorView::new()));
|
||||
|
||||
let mut app = Self {
|
||||
editor,
|
||||
compositor,
|
||||
editor,
|
||||
|
||||
executor,
|
||||
};
|
||||
|
@ -139,7 +139,7 @@ fn default() -> Self {
|
||||
|
||||
let scopes = mapping.keys().map(ToString::to_string).collect();
|
||||
|
||||
Self { mapping, scopes }
|
||||
Self { scopes, mapping }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user