diff options
Diffstat (limited to 'src/conf/themes.rs')
-rw-r--r-- | src/conf/themes.rs | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/conf/themes.rs b/src/conf/themes.rs index 905b2293..204e8597 100644 --- a/src/conf/themes.rs +++ b/src/conf/themes.rs @@ -1212,23 +1212,14 @@ impl Themes { Themes::validate_keys(name, t, &hash_set)?; } if let Err(err) = is_cyclic(&self.light) { - return Err(Error::new(format!( - "light theme contains a cycle: {}", - err - ))); + return Err(Error::new(format!("light theme contains a cycle: {}", err))); } if let Err(err) = is_cyclic(&self.dark) { - return Err(Error::new(format!( - "dark theme contains a cycle: {}", - err - ))); + return Err(Error::new(format!("dark theme contains a cycle: {}", err))); } for (k, t) in self.other_themes.iter() { if let Err(err) = is_cyclic(t) { - return Err(Error::new(format!( - "{} theme contains a cycle: {}", - k, err - ))); + return Err(Error::new(format!("{} theme contains a cycle: {}", k, err))); } } Ok(()) |