diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2022-12-27 18:40:26 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2022-12-27 18:40:26 +0200 |
commit | de2f46fe611726a445c1e06cbc35343e716aa335 (patch) | |
tree | f6bf5e697cfb1c5f329845390257a597f9a77af3 /src/conf/themes.rs | |
parent | 5443b7e8f300a0084abde7354360ecbe909178bb (diff) | |
download | meli-de2f46fe611726a445c1e06cbc35343e716aa335.zip |
rustfmt changes
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(()) |