Skip to content

Commit

Permalink
chore: derive default
Browse files Browse the repository at this point in the history
  • Loading branch information
rvcas committed Jun 7, 2024
1 parent f3d099b commit 8cbb33b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,14 @@ use owo_colors::OwoColorize;
use std::collections::BTreeMap;
use zellij_tile::prelude::*;

#[derive(Default)]
struct State {
tabs: Vec<TabInfo>,
filter: String,
selected: Option<usize>,
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 {
Expand Down

0 comments on commit 8cbb33b

Please sign in to comment.