diff --git a/src/keys/slip10.rs b/src/keys/slip10.rs index feb6ab5..195c0d7 100644 --- a/src/keys/slip10.rs +++ b/src/keys/slip10.rs @@ -129,7 +129,7 @@ pub mod secp256k1 { if scalar.is_zero().into() { false } else { - key_bytes[1..].copy_from_slice(&*scalar.to_bytes()); + key_bytes[1..].copy_from_slice(&scalar.to_bytes()); true } } else {