fix: second round of clippy lints

Clippy would not automatically apply these fixes, so they were applied
by hand.
This commit is contained in:
wucke13
2024-01-03 18:32:09 +01:00
committed by wucke13
parent 26cb4a587f
commit 62aa9b4351
5 changed files with 14 additions and 14 deletions

View File

@@ -83,7 +83,7 @@ impl<T: Zeroize + ?Sized> Deref for ZeroizingSecretBox<T> {
type Target = T;
fn deref(&self) -> &T {
&self.0.as_ref().unwrap()
self.0.as_ref().unwrap()
}
}
@@ -177,7 +177,7 @@ impl<const N: usize> Secret<N> {
/// Borrows the data
pub fn secret(&self) -> &[u8; N] {
&self.storage.as_ref().unwrap()
self.storage.as_ref().unwrap()
}
/// Borrows the data mutably