Skip to content

Commit 9c5ea61

Browse files
Suppress clippy warning for Rust version compatibility
Add #[allow(clippy::manual_is_multiple_of)] to maintain compatibility between Rust 1.83 (Docker) and 1.92+ (CI) where the method was stabilized.
1 parent 5e5d2e7 commit 9c5ea61

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • crates/rust-hsm-core/src/pkcs11/keys

crates/rust-hsm-core/src/pkcs11/keys/csr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ fn sign_tbs(
426426
}
427427

428428
/// Convert raw ECDSA signature (r || s) to DER-encoded SEQUENCE { r INTEGER, s INTEGER }
429+
#[allow(clippy::manual_is_multiple_of)] // is_multiple_of() not stable in Rust 1.83 (Docker)
429430
fn encode_ecdsa_signature(raw_sig: &[u8]) -> anyhow::Result<Vec<u8>> {
430431
// Split raw signature into r and s components (equal length)
431432
if raw_sig.len() % 2 != 0 {

0 commit comments

Comments
 (0)