fix: clippy warnings

This commit is contained in:
2025-11-26 06:42:29 +02:00
parent b81b87e6db
commit f1a0ab75c3
4 changed files with 10 additions and 5 deletions

View File

@@ -107,7 +107,7 @@ impl<'a> Iterator for SubkeyChunks<'a> {
fn next(&mut self) -> Option<Self::Item> {
self.0
.next()
.map(|chunk| <&[Subkey; 4]>::try_from(chunk).unwrap())
.map(|chunk| <&[Subkey; 4]>::try_from(chunk).expect("4 chunk subkeys"))
}
}
@@ -118,7 +118,7 @@ impl<'a> Iterator for SubkeyChunksRev<'a> {
fn next(&mut self) -> Option<Self::Item> {
self.0
.next()
.map(|chunk| <&[Subkey; 4]>::try_from(chunk).unwrap())
.map(|chunk| <&[Subkey; 4]>::try_from(chunk).expect("4 chunk subkeys"))
}
}