π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix(rust): Resolve all clippy warnings for CI compliance
Manav Rathi6e64a2067f4a
diff --git a/rust/src/commands/export.rs b/rust/src/commands/export.rsindex 755ba919b9..104f0e0083 100644--- a/rust/src/commands/export.rs+++ b/rust/src/commands/export.rs@@ -214,23 +214,23 @@ fn generate_export_path(path.push(month);// Add collection name if available- if let Some(col) = collection {- if let Some(ref name) = col.name {- if !name.is_empty() && name != "Uncategorized" {- // Sanitize collection name for filesystem- let safe_name: String = name- .chars()- .map(|c| match c {- '/' | '\\' | ':' | '*' | '?' | '"' | '<' | '>' | '|' => '_',- c if c.is_control() => '_',- c => c,- })- .collect::<String>()- .trim()- .to_string();- path.push(safe_name);- }- }+ if let Some(col) = collection+ && let Some(ref name) = col.name+ && !name.is_empty()+ && name != "Uncategorized"+ {+ // Sanitize collection name for filesystem+ let safe_name: String = name+ .chars()+ .map(|c| match c {+ '/' | '\\' | ':' | '*' | '?' | '"' | '<' | '>' | '|' => '_',+ c if c.is_control() => '_',+ c => c,+ })+ .collect::<String>()+ .trim()+ .to_string();+ path.push(safe_name);}// Generate filename - just use ID with a generic extension for nowdiff --git a/rust/src/storage/mod.rs b/rust/src/storage/mod.rsindex 065b44fc8f..d15519933e 100644--- a/rust/src/storage/mod.rs+++ b/rust/src/storage/mod.rs@@ -58,17 +58,17 @@ impl Storage {}/// Get account store- pub fn accounts(&self) -> AccountStore {+ pub fn accounts(&self) -> AccountStore<'_> {AccountStore::new(&self.conn)}/// Get config store- pub fn config(&self) -> ConfigStore {+ pub fn config(&self) -> ConfigStore<'_> {ConfigStore::new(&self.conn)}/// Get sync store- pub fn sync(&self) -> SyncStore {+ pub fn sync(&self) -> SyncStore<'_> {SyncStore::new(&self.conn)}}