diff --git a/src/bin/zjstatus.rs b/src/bin/zjstatus.rs index 388f9e8..ed7feb6 100644 --- a/src/bin/zjstatus.rs +++ b/src/bin/zjstatus.rs @@ -1,7 +1,7 @@ use zellij_tile::prelude::*; use chrono::Local; -use std::{collections::BTreeMap, sync::Arc, usize}; +use std::{collections::BTreeMap, sync::Arc}; use uuid::Uuid; use zjstatus::{ diff --git a/src/config.rs b/src/config.rs index 6d7612e..875c31e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -131,10 +131,7 @@ impl ModuleConfig { None => false, }; - let border_config = match parse_border_config(config.clone()) { - Some(bc) => bc, - None => BorderConfig::default(), - }; + let border_config = parse_border_config(config.clone()).unwrap_or_default(); Ok(Self { left_parts_config: left_parts_config.to_owned(),