diff --git a/src/openhuman/keyring/encrypted_store.rs b/src/openhuman/keyring/encrypted_store.rs index 5f75a2cefd..b57be0ed24 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() );