style: Fix clipy lint

This commit is contained in:
Jade Ellis
2026-04-25 10:07:05 +01:00
parent 5dcfff51cf
commit 3af0240ff5
+3 -8
View File
@@ -19,9 +19,7 @@ where
}
}
ctx.finalize()
.try_into()
.expect("failed to return Digest buffer")
ctx.finalize().into()
}
/// Sha256 hash (input gather)
@@ -38,8 +36,7 @@ where
ctx
})
.finalize()
.try_into()
.expect("failed to return Digest buffer")
.into()
}
/// Sha256 hash
@@ -50,7 +47,5 @@ pub fn hash<T>(input: T) -> DigestOut
where
T: AsRef<[u8]>,
{
Sha256::digest(input)
.try_into()
.expect("failed to return Digest buffer")
Sha256::digest(input).into()
}