Skip to content

Commit

Permalink
Fix cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Dec 12, 2023
1 parent 3b5e69e commit 9c25a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/app-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl Setup {

if let Some(ref assume_valid_target) = config.network.sync.assume_valid_target {
if assume_valid_target
== &H256::from_slice(&vec![0; 32]).expect("must parse Zero h256 successful")
== &H256::from_slice(&[0; 32]).expect("must parse Zero h256 successful")
{
info!("Disable assume valid target since assume_valid_target is zero");
config.network.sync.assume_valid_target = None
Expand Down

0 comments on commit 9c25a56

Please sign in to comment.