diff --git a/src/aead.rs b/src/aead.rs index 893b7c409f..7a05264cd2 100644 --- a/src/aead.rs +++ b/src/aead.rs @@ -57,7 +57,6 @@ pub trait BoundKey: core::fmt::Debug { fn new(key: UnboundKey, nonce_sequence: N) -> Self; /// The key's AEAD algorithm. - #[inline] fn algorithm(&self) -> &'static Algorithm; } diff --git a/src/digest/sha2.rs b/src/digest/sha2.rs index 878914c20f..f50ab97ae6 100644 --- a/src/digest/sha2.rs +++ b/src/digest/sha2.rs @@ -159,10 +159,8 @@ pub(super) trait Word: type InputBytes: Copy; - #[inline(always)] fn from_be_bytes(input: Self::InputBytes) -> Self; - #[inline] fn rotr(self, count: u32) -> Self; } @@ -275,6 +273,7 @@ impl Word for Wrapping { const ZERO: Self = Wrapping(0); type InputBytes = [u8; 8]; + #[inline(always)] fn from_be_bytes(input: Self::InputBytes) -> Self { Wrapping(u64::from_be_bytes(input)) }