diff --git a/libsignal-service/src/master_key.rs b/libsignal-service/src/master_key.rs index da0ca7fd1..40e60a27a 100644 --- a/libsignal-service/src/master_key.rs +++ b/libsignal-service/src/master_key.rs @@ -18,9 +18,9 @@ impl MasterKey { } pub fn from_slice( - slice: &Vec, + slice: &[u8], ) -> Result { - let inner = slice.as_slice().try_into()?; + let inner = slice.try_into()?; Ok(Self { inner }) } } @@ -53,9 +53,9 @@ impl StorageServiceKey { } pub fn from_slice( - slice: &Vec, + slice: &[u8], ) -> Result { - let inner = slice.as_slice().try_into()?; + let inner = slice.try_into()?; Ok(Self { inner }) } }