Fix cargo clippy and fmt

Change-Id: I94b32c9e2978691fdfa70b58432fffd501e0ba90
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/62885
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
chromium-stable
Maurice Lam 1 year ago committed by Boringssl LUCI CQ
parent ab45f42e8e
commit 5a3eb9ea7e
  1. 3
      rust/bssl-crypto/src/digest.rs
  2. 2
      rust/bssl-crypto/src/hkdf.rs

@ -15,7 +15,7 @@
use core::marker::PhantomData;
use crate::{ForeignTypeRef, CSlice};
use crate::{CSlice, ForeignTypeRef};
/// The SHA-256 digest algorithm.
#[derive(Clone)]
@ -86,7 +86,6 @@ impl Sha512 {
pub struct Digest<M: Md, const OUTPUT_SIZE: usize>(bssl_sys::EVP_MD_CTX, PhantomData<M>);
impl<M: Md, const OUTPUT_SIZE: usize> Digest<M, OUTPUT_SIZE> {
/// Creates a new Digest from the given `Md` type parameter.
///
/// Panics:

@ -45,7 +45,7 @@ impl<M: Md> Hkdf<M> {
Self {
salt: salt.map(Vec::from),
ikm: Vec::from(ikm),
_marker: PhantomData::default(),
_marker: PhantomData,
}
}

Loading…
Cancel
Save