diff options
author | Blaž Hrastnik | 2021-03-22 03:26:04 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-03-22 03:29:55 +0000 |
commit | c4792efead160859d17f8ca969869037b7d2e1d5 (patch) | |
tree | 9a263833913836ab7dd7598d14c8196c832c92f8 | |
parent | 798dbd27c50296d260fe13483e4a3aacd240c6ad (diff) |
clippy lints
-rw-r--r-- | helix-core/src/selection.rs | 1 | ||||
-rw-r--r-- | helix-term/src/application.rs | 2 | ||||
-rw-r--r-- | helix-view/src/theme.rs | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/helix-core/src/selection.rs b/helix-core/src/selection.rs index 86c8c03f..cc8ec8d0 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 48d7186f..16a0f6f6 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 b200fa0e..e51fab3e 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 } } } |