π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
rust/core: fix clippy warnings
Prateek Sunal58aabac158cb
diff --git a/rust/core/src/auth/api.rs b/rust/core/src/auth/api.rsindex 45d9b3915c..3c0f708936 100644--- a/rust/core/src/auth/api.rs+++ b/rust/core/src/auth/api.rs@@ -153,6 +153,7 @@ pub fn decrypt_secrets(/// # Returns/// * Tuple of (SrpSession, kek) - use session for SRP, keep kek for later decryption#[cfg(any(test, feature = "srp"))]+#[cfg_attr(not(test), allow(dead_code))]pub(crate) fn start_srp_session(password: &str,srp_attrs: &SrpAttributes,diff --git a/rust/core/src/crypto/impl_pure/argon.rs b/rust/core/src/crypto/impl_pure/argon.rsindex 9dec2acd1c..30e6a72171 100644--- a/rust/core/src/crypto/impl_pure/argon.rs+++ b/rust/core/src/crypto/impl_pure/argon.rs@@ -203,7 +203,7 @@ pub fn derive_sensitive_key_with_salt_adaptive(});}- if MEMLIMIT_SENSITIVE % MEMLIMIT_MODERATE != 0 {+ if !MEMLIMIT_SENSITIVE.is_multiple_of(MEMLIMIT_MODERATE) {return Err(CryptoError::InvalidKeyDerivationParams(format!("Memory limit {} must be divisible by {}",MEMLIMIT_SENSITIVE, MEMLIMIT_MODERATE