aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--helix-core/src/selection.rs1
-rw-r--r--helix-term/src/application.rs2
-rw-r--r--helix-view/src/theme.rs2
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 }
}
}