From e4c720ee413aeb6bd45adb197242eb3bda4db39c Mon Sep 17 00:00:00 2001 From: Daniel Jankowski Date: Thu, 20 Jun 2024 20:12:15 +0200 Subject: [PATCH] chore: fix linting issues --- src/bin/zjstatus.rs | 2 +- src/config.rs | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) 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(),