fix: resolve clippy issues

This commit is contained in:
objz committed 2026-04-18 17:09:01 +02:00
1 parent eb91c908fc
commit 971375bf1f
18 files changed
+80 -116

No files matched your search

+2 -3
View File
@@ -141,15 +141,14 @@ fn load_base_theme(name: &str) -> Box<dyn Theme> {
}
};
if let Some(path) = path {
if let Ok(content) = std::fs::read_to_string(&path) {
if let Some(path) = path
&& let Ok(content) = std::fs::read_to_string(&path) {
if let Ok(custom) = toml::from_str::<CustomTheme>(&content) {
return Box::new(custom);
} else {
tracing::warn!("Failed to parse theme file: {}", path.display());
}
}
}
// Fall back to built-in theme by name
resolve_theme(name)