diff --git a/helix-core/src/selection.rs b/helix-core/src/selection.rs index 86c8c03f2..cc8ec8d05 100644 --- a/helix-core/src/selection.rs +++ b/helix-core/src/selection.rs @@ -133,6 +133,7 @@ pub struct Selection { primary_index: usize, } +#[allow(clippy::len_without_is_empty)] // a Selection is never empty impl Selection { // eq diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 48d7186f7..16a0f6f6b 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -46,8 +46,8 @@ impl Application { compositor.push(Box::new(ui::EditorView::new())); let mut app = Self { - editor, compositor, + editor, executor, }; diff --git a/helix-view/src/theme.rs b/helix-view/src/theme.rs index b200fa0e3..e51fab3ee 100644 --- a/helix-view/src/theme.rs +++ b/helix-view/src/theme.rs @@ -139,7 +139,7 @@ impl Default for Theme { let scopes = mapping.keys().map(ToString::to_string).collect(); - Self { mapping, scopes } + Self { scopes, mapping } } }