]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix new rustc warnings for unnecessary parenthesis
authorMatt Corallo <git@bluematt.me>
Sat, 18 Apr 2020 01:06:40 +0000 (21:06 -0400)
committerMatt Corallo <git@bluematt.me>
Sun, 19 Apr 2020 00:47:16 +0000 (20:47 -0400)
lightning/src/chain/keysinterface.rs

index 58bdd7226097d06382a06cf086c1a0080ab98f51..fb163966f9a2ffc069d0e731c25bae7bfc77fa34 100644 (file)
@@ -620,6 +620,6 @@ impl KeysInterface for KeysManager {
                let child_privkey = self.channel_id_master_key.ckd_priv(&self.secp_ctx, ChildNumber::from_hardened_idx(child_ix as u32).expect("key space exhausted")).expect("Your RNG is busted");
                sha.input(&child_privkey.private_key.key[..]);
 
-               (Sha256::from_engine(sha).into_inner())
+               Sha256::from_engine(sha).into_inner()
        }
 }