Skip to content

Commit ce65317

Browse files
committed
chore: Fix an incorrect warning due to the zeroize macro
1 parent cd988e5 commit ce65317

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/matrix-sdk-crypto/src/secret_storage.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
//!
1818
//! [spec]: https://spec.matrix.org/v1.8/client-server-api/#storage
1919
20+
// This is here because we have a zeroize(skip) further below, which incorrectly triggers a
21+
// unused_assignments warning due to the macro not using a variable.
22+
//
23+
// This will be fixed once we bump Zeroize.
24+
#![allow(unused_assignments)]
25+
2026
use std::fmt;
2127

2228
use hmac::Hmac;

0 commit comments

Comments
 (0)