From 1fb0f8cc0352c7b8bf1c7277cf21d7b3e80cdade Mon Sep 17 00:00:00 2001 From: adlee-was-taken Date: Sun, 19 Apr 2026 15:35:01 -0400 Subject: [PATCH] chore(core): Debug derive on StrengthEstimate + fix stale test comment Co-Authored-By: Claude Opus 4.7 (1M context) --- crates/idfoto-core/src/generators.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/idfoto-core/src/generators.rs b/crates/idfoto-core/src/generators.rs index d8e941c..706ae14 100644 --- a/crates/idfoto-core/src/generators.rs +++ b/crates/idfoto-core/src/generators.rs @@ -106,6 +106,7 @@ fn bip39_passphrase(word_count: u32, separator: &str, cap: Capitalization) -> Re } /// Returns zxcvbn's 0-4 score (higher is stronger) and the estimated guesses. +#[derive(Debug, Clone, Copy)] pub struct StrengthEstimate { pub score: u8, pub guesses_log10: f64, @@ -181,7 +182,7 @@ mod bip39_tests { #[test] fn rate_passphrase_strong_one_passes_gate() { - // 5-word bip39 passphrase + // 6-word bip39 passphrase let req = GeneratorRequest::Bip39 { word_count: 6, separator: " ".into(),