What changed, and why it matters
This commit is purely a code-formatting change. It only rewrites two test assertions in a Rust file so they fit on single lines instead of being split across multiple lines. No logic, behavior, or security checks were changed.
No action required; this is a non-security formatting commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies rust/keystore/src/algorithms/rsa/mod.rs, collapsing multi-line assert! calls in unit tests into single-line equivalents. The expressions, error strings, and test logic remain identical. There is no functional or cryptographic change.
Changed components
rust/keystore/src/algorithms/rsa/mod.rs (test code only)Inspect captured patch +2 / −6
diff --git a/rust/keystore/src/algorithms/rsa/mod.rs b/rust/keystore/src/algorithms/rsa/mod.rs
index f95b755..14adbb2 100644
--- a/rust/keystore/src/algorithms/rsa/mod.rs
+++ b/rust/keystore/src/algorithms/rsa/mod.rs
@@ -178,16 +178,12 @@ mod tests {
// all-zero seed with valid length should be rejected by seed check
let zero_seed = vec![0u8; 16];
let result = get_rsa_secret_from_seed(zero_seed.as_slice()).unwrap_err();
- assert!(result
- .to_string()
- .contains("invalid seed"));
+ assert!(result.to_string().contains("invalid seed"));
// all-0xFF seed with valid length should also be rejected
let ff_seed = vec![0xffu8; 32];
let result = get_rsa_secret_from_seed(ff_seed.as_slice()).unwrap_err();
- assert!(result
- .to_string()
- .contains("invalid seed"));
+ assert!(result.to_string().contains("invalid seed"));
// Test empty seed
let empty_seed = [];
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.