diff --git a/src/lib.rs b/src/lib.rs index 56b8c06..52f0580 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -590,6 +590,12 @@ impl From<&[u8; N]> for InlineArray { } } +impl From<[u8; N]> for InlineArray { + fn from(v: [u8; N]) -> Self { + Self::from(&v[..]) + } +} + impl Ord for InlineArray { fn cmp(&self, other: &Self) -> std::cmp::Ordering { self.as_ref().cmp(other.as_ref())