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
@@ -40,12 +40,11 @@ impl AccountStore {
}
pub fn save(&self) {
if let Some(parent) = self.path.parent() {
if let Err(e) = std::fs::create_dir_all(parent) {
if let Some(parent) = self.path.parent()
&& let Err(e) = std::fs::create_dir_all(parent) {
tracing::error!("Failed to create accounts directory: {}", e);
return;
}
}
match serde_json::to_string_pretty(&self.accounts) {
Ok(json) => {
if let Err(e) = std::fs::write(&self.path, json) {