@ -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 @@ impl Application {
compositor.push(Box::new(ui::EditorView::new()));
let mut app = Self {
editor,
compositor,
executor,
};
@ -139,7 +139,7 @@ impl Default for Theme {
let scopes = mapping.keys().map(ToString::to_string).collect();
Self { mapping, scopes }
Self { scopes, mapping }