diff --git a/aead/src/stream.rs b/aead/src/stream.rs
index c61b76fb1..170904559 100644
--- a/aead/src/stream.rs
+++ b/aead/src/stream.rs
@@ -226,7 +226,7 @@ macro_rules! impl_stream_object {
pub fn new(key: &Key, nonce: &Nonce) -> Self
where
A: NewAead,
- S: NewStream
+ S: NewStream,
{
Self::from_stream_primitive(S::new(key, nonce))
}
@@ -237,7 +237,7 @@ macro_rules! impl_stream_object {
pub fn from_aead(aead: A, nonce: &Nonce) -> Self
where
A: NewAead,
- S: NewStream
+ S: NewStream,
{
Self::from_stream_primitive(S::from_aead(aead, nonce))
}
@@ -291,7 +291,8 @@ macro_rules! impl_stream_object {
return Err(Error);
}
- self.stream.$in_place_op(self.position, false, associated_data, buffer)?;
+ self.stream
+ .$in_place_op(self.position, false, associated_data, buffer)?;
// Note: overflow checked above
self.position += S::COUNTER_INCR;
@@ -322,12 +323,13 @@ macro_rules! impl_stream_object {
pub fn $last_in_place_method(
self,
associated_data: &[u8],
- buffer: &mut dyn Buffer
+ buffer: &mut dyn Buffer,
) -> Result<(), Error> {
- self.stream.$in_place_op(self.position, true, associated_data, buffer)
+ self.stream
+ .$in_place_op(self.position, true, associated_data, buffer)
}
}
- }
+ };
}
impl_stream_object!(
diff --git a/crypto-mac/src/lib.rs b/crypto-mac/src/lib.rs
index 750df6885..5020bc7a9 100644
--- a/crypto-mac/src/lib.rs
+++ b/crypto-mac/src/lib.rs
@@ -25,8 +25,8 @@ pub mod dev;
#[cfg_attr(docsrs, doc(cfg(feature = "core-api")))]
pub mod core_api;
+pub use cipher::{errors::InvalidLength, FromKey};
pub use crypto_common::{FixedOutput, FixedOutputReset, Reset, Update};
-pub use cipher::{FromKey, errors::InvalidLength};
pub use generic_array::{self, typenum::consts};
use core::fmt;