Streamline conversion from Key to GenericArray (#2553)

This commit is contained in:
Julian Braha 2024-06-17 18:08:50 -04:00 committed by GitHub
parent bdc242a852
commit e3202b3d35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -326,7 +326,7 @@ where
I: ArrayLength<u8>, I: ArrayLength<u8>,
{ {
fn from(value: &Key) -> Self { fn from(value: &Key) -> Self {
value.expose().iter().copied().collect() // TODO(brxken128): streamline this? GenericArray::clone_from_slice(value.expose())
} }
} }