diff --git a/zcash_primitives/src/sapling.rs b/zcash_primitives/src/sapling.rs index 9486f05567..f99f8efe14 100644 --- a/zcash_primitives/src/sapling.rs +++ b/zcash_primitives/src/sapling.rs @@ -470,9 +470,7 @@ impl Note { pub(crate) fn generate_or_derive_esk_internal(&self, rng: &mut R) -> jubjub::Fr { match self.derive_esk() { - None => { - jubjub::Fr::random(rng) - } + None => jubjub::Fr::random(rng), Some(esk) => esk, } }