Run cargo fmt

This commit is contained in:
Dheepak Krishnamurthy 2021-02-11 01:24:41 -07:00
parent f133ec219b
commit e222b147cc
6 changed files with 114 additions and 63 deletions

View file

@ -27,9 +27,7 @@ impl TColor {
}
pub fn new(fg: Color, bg: Color, modifiers: Vec<Modifier>) -> Self {
Self {
fg, bg, modifiers,
}
Self { fg, bg, modifiers }
}
}
@ -61,7 +59,6 @@ impl TaskWarriorBool for str {
}
}
#[derive(Debug)]
pub struct Config {
pub enabled: bool,
@ -98,10 +95,16 @@ impl Config {
uda_selection_dim: Self::get_uda_selection_dim(),
uda_selection_blink: Self::get_uda_selection_blink(),
uda_calendar_months_per_row: Self::get_uda_months_per_row(),
uda_style_calendar_title: Self::get_uda_style("calendar.title")
.unwrap_or(TColor::new(Color::Reset, Color::Reset, vec![])),
uda_style_context_active: Self::get_uda_style("context.active")
.unwrap_or(TColor::new(Color::Reset, Color::Reset, vec![])),
uda_style_calendar_title: Self::get_uda_style("calendar.title").unwrap_or(TColor::new(
Color::Reset,
Color::Reset,
vec![],
)),
uda_style_context_active: Self::get_uda_style("context.active").unwrap_or(TColor::new(
Color::Reset,
Color::Reset,
vec![],
)),
})
}