fix(keyring): declare msg mutable for cfg(windows) push_str (E0596) (#4772)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Muhammad Ismail
2026-07-21 20:10:38 +03:00
committed by GitHub
co-authored by Claude Fable 5
parent e2f9014575
commit dfa573859c
+3 -1
View File
@@ -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()
);