π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Run rustfmt for paste CLI
Manav Rathidcfc1b6445b5
diff --git a/rust/apps/cli/src/commands/paste.rs b/rust/apps/cli/src/commands/paste.rsindex 153e578a17..76fd39043c 100644--- a/rust/apps/cli/src/commands/paste.rs+++ b/rust/apps/cli/src/commands/paste.rs@@ -69,7 +69,9 @@ fn read_paste_text(text: Option<String>, file: Option<PathBuf>) -> Result<String};if text.trim().is_empty() {- return Err(Error::InvalidInput("Paste text cannot be empty".to_string()));+ return Err(Error::InvalidInput(+ "Paste text cannot be empty".to_string(),+ ));}if text.chars().count() > MAX_PASTE_CHARS {return Err(Error::InvalidInput(format!(@@ -154,7 +156,9 @@ fn dialoguer_error(error: dialoguer::Error) -> Error {fn validate_password(password: &str) -> Result<()> {if password.is_empty() {- Err(Error::InvalidInput("Paste password cannot be empty".to_string()))+ Err(Error::InvalidInput(+ "Paste password cannot be empty".to_string(),+ ))} else {Ok(())}