diff --git a/um_crypto/kgm/src/header.rs b/um_crypto/kgm/src/header.rs index b1ef1eb..db78a1e 100644 --- a/um_crypto/kgm/src/header.rs +++ b/um_crypto/kgm/src/header.rs @@ -55,8 +55,8 @@ impl Header { }; let decipher: Box = match self.crypto_version { - 2 => Box::from(DecipherV2::new(self, slot_key)?), - 3 => Box::from(DecipherV3::new(self, slot_key)?), + 2 => Box::new(DecipherV2::new(self, slot_key)?), + 3 => Box::new(DecipherV3::new(self, slot_key)?), version => Err(KugouError::UnsupportedCipherVersion(version))?, };