mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-02 16:21:42 +00:00
Updated to comply with new clippy formatting rules (#2336)
## Issue Addressed The latest version of Rust has new clippy rules & the codebase isn't up to date with them. ## Proposed Changes Small formatting changes that clippy tells me are functionally equivalent
This commit is contained in:
@@ -62,8 +62,8 @@ impl GanacheInstance {
|
||||
child.stdout = Some(reader.into_inner());
|
||||
|
||||
Ok(Self {
|
||||
child,
|
||||
port,
|
||||
child,
|
||||
web3,
|
||||
network_id,
|
||||
chain_id,
|
||||
|
||||
@@ -104,7 +104,7 @@ impl DepositContract {
|
||||
})?;
|
||||
Contract::from_json(web3.clone().eth(), address, ABI)
|
||||
.map_err(|e| format!("Failed to init contract: {:?}", e))
|
||||
.map(move |contract| Self { contract, web3 })
|
||||
.map(move |contract| Self { web3, contract })
|
||||
}
|
||||
|
||||
/// The deposit contract's address in `0x00ab...` format.
|
||||
|
||||
@@ -83,8 +83,8 @@ impl ExitTest {
|
||||
|
||||
TestVector {
|
||||
title,
|
||||
block,
|
||||
pre_state,
|
||||
block,
|
||||
post_state,
|
||||
error,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user