From c4792efead160859d17f8ca969869037b7d2e1d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Mon, 22 Mar 2021 12:26:04 +0900 Subject: [PATCH] clippy lints --- helix-core/src/selection.rs | 1 + helix-term/src/application.rs | 2 +- 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 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 } } }