From 1cd9435f215e2e95df303f0026befb135d617e94 Mon Sep 17 00:00:00 2001 From: Yuxiang Cao Date: Fri, 26 Jan 2024 10:59:30 -0800 Subject: [PATCH] style: fix lints --- mbedtls/src/pkcs12/mod.rs | 1 + mbedtls/src/rng/ctr_drbg.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/mbedtls/src/pkcs12/mod.rs b/mbedtls/src/pkcs12/mod.rs index a9dc9ba93..54e5a82fa 100644 --- a/mbedtls/src/pkcs12/mod.rs +++ b/mbedtls/src/pkcs12/mod.rs @@ -430,6 +430,7 @@ enum Pkcs12BagSet { EncryptedPkcs8(Vec), Pkcs8(Vec), Cert(CertBag), + #[allow(dead_code)] UnknownBlob(Vec), // XXX CRL and Secret bags not supported //Crl(CrlBag), diff --git a/mbedtls/src/rng/ctr_drbg.rs b/mbedtls/src/rng/ctr_drbg.rs index a3a378234..e0e250a91 100644 --- a/mbedtls/src/rng/ctr_drbg.rs +++ b/mbedtls/src/rng/ctr_drbg.rs @@ -19,6 +19,7 @@ use crate::alloc_prelude::*; use crate::error::{IntoResult, Result}; use crate::rng::{EntropyCallback, EntropyCallbackMut, RngCallback, RngCallbackMut}; +#[allow(dead_code)] enum EntropyHolder { Shared(Arc), Unique(Box),