Skip to content

Commit

Permalink
clippy let binding
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected committed Feb 28, 2023
1 parent 5a0edca commit 1dd1691
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions crates/primitives/src/chain/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ impl ChainSpec {
None
};

let header = Header {
Header {
gas_limit: self.genesis.gas_limit,
difficulty: self.genesis.difficulty,
nonce: self.genesis.nonce,
Expand All @@ -155,12 +155,8 @@ impl ChainSpec {
mix_hash: self.genesis.mix_hash,
beneficiary: self.genesis.coinbase,
base_fee_per_gas,
transactions_root: EMPTY_ROOT,
receipts_root: EMPTY_ROOT,
ommers_hash: EMPTY_OMMER_ROOT,
..Default::default()
};
header
}
}

/// Get the hash of the genesis block.
Expand Down

0 comments on commit 1dd1691

Please sign in to comment.