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

@@ -20,7 +20,7 @@ pub struct Public<const N: usize> {
impl<const N: usize> Public<N> {
/// Create a new [Public] from a byte slice
pub fn from_slice(value: &[u8]) -> Self {
copy_slice(value).to_this(|| Self::zero())
copy_slice(value).to_this(Self::zero)
}
/// Create a new [Public] from a byte array