diff --git a/src/main.rs b/src/main.rs index 99d243a..860387f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,6 +2,7 @@ use owo_colors::OwoColorize; use std::collections::BTreeMap; use zellij_tile::prelude::*; +#[derive(Default)] struct State { tabs: Vec, filter: String, @@ -9,17 +10,6 @@ struct State { ignore_case: bool, } -impl Default for State { - fn default() -> Self { - Self { - tabs: Vec::default(), - filter: String::default(), - selected: None, - ignore_case: false, - } - } -} - impl State { fn filter(&self, tab: &&TabInfo) -> bool { if self.ignore_case {