From aac50db8662a9556b6223b4d4bbf0081436dfb15 Mon Sep 17 00:00:00 2001 From: Matti Viljanen Date: Thu, 3 Oct 2024 17:11:23 +0300 Subject: [PATCH] Use more correct slice type Co-authored-by: Ruben De Smet --- libsignal-service/src/master_key.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 }) } }