mirror of
https://github.com/kristoferssolo/cipher-workshop.git
synced 2026-02-04 06:42:11 +00:00
fix: clippy warnings
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user