diff --git a/src/config.rs b/src/config.rs index 4c7658b..35f07b1 100644 --- a/src/config.rs +++ b/src/config.rs @@ -117,7 +117,7 @@ impl TConfig { } fn get_tcolor(line: &str) -> TColor { - let (foreground, background) = line.split_at(line.to_lowercase().find("on ").unwrap_or_else( || line.len())); + let (foreground, background) = line.split_at(line.to_lowercase().find("on ").unwrap_or_else(|| line.len())); let (mut foreground, mut background) = (String::from(foreground), String::from(background)); background = background.replace("on ", ""); let mut modifiers = vec![];