From dfa573859c5ae2eac968ffceff5acee45da953ce Mon Sep 17 00:00:00 2001 From: Muhammad Ismail <78064250+myi1@users.noreply.github.com> Date: Tue, 21 Jul 2026 21:10:38 +0400 Subject: [PATCH] fix(keyring): declare msg mutable for cfg(windows) push_str (E0596) (#4772) Co-authored-by: Claude Fable 5 --- src/openhuman/keyring/encrypted_store.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openhuman/keyring/encrypted_store.rs b/src/openhuman/keyring/encrypted_store.rs index d2aac37dd..378522c49 100644 --- a/src/openhuman/keyring/encrypted_store.rs +++ b/src/openhuman/keyring/encrypted_store.rs @@ -294,7 +294,9 @@ impl SecretStore { }; let hex_key = read_result.with_context(|| { - let msg = format!( + // `mut` is only exercised inside the #[cfg(windows)] block below. + #[cfg_attr(not(windows), allow(unused_mut))] + let mut msg = format!( "Failed to read secret key file at {}", self.key_path.display() );