mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-06-30 13:43:28 +00:00
Streamline conversion from Key to GenericArray (#2553)
This commit is contained in:
parent
bdc242a852
commit
e3202b3d35
|
@ -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())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue