Skip to content

Commit e89e13b

Browse files
committed
add inline attributes
1 parent d737a59 commit e89e13b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

digest/src/core_api/wrapper.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,15 @@ where
8989
T::BlockSize: IsLess<U256>,
9090
Le<T::BlockSize, U256>: NonZero,
9191
{
92+
#[inline]
9293
fn new(key: &Key<Self>) -> Self {
9394
Self {
9495
core: T::new(key),
9596
buffer: Default::default(),
9697
}
9798
}
9899

100+
#[inline]
99101
fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength> {
100102
Ok(Self {
101103
core: T::new_from_slice(key)?,
@@ -110,6 +112,7 @@ where
110112
T::BlockSize: IsLess<U256>,
111113
Le<T::BlockSize, U256>: NonZero,
112114
{
115+
#[inline]
113116
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
114117
T::write_alg_name(f)?;
115118
f.write_str(" { .. }")

0 commit comments

Comments
 (0)