From: Matt Corallo Date: Sat, 18 Apr 2020 01:06:40 +0000 (-0400) Subject: Fix new rustc warnings for unnecessary parenthesis X-Git-Tag: v0.0.12~81^2~3 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=41b3be7ad00fd65b38a5b55376cb2554f483348b;p=rust-lightning Fix new rustc warnings for unnecessary parenthesis --- diff --git a/lightning/src/chain/keysinterface.rs b/lightning/src/chain/keysinterface.rs index 58bdd7226..fb163966f 100644 --- a/lightning/src/chain/keysinterface.rs +++ b/lightning/src/chain/keysinterface.rs @@ -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() } }