mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 10:22:38 +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:
@@ -1355,7 +1355,7 @@ pub fn serve<T: BeaconChainTypes>(
|
||||
let heads = chain
|
||||
.heads()
|
||||
.into_iter()
|
||||
.map(|(root, slot)| api_types::ChainHeadData { root, slot })
|
||||
.map(|(root, slot)| api_types::ChainHeadData { slot, root })
|
||||
.collect::<Vec<_>>();
|
||||
Ok(api_types::GenericResponse::from(heads))
|
||||
})
|
||||
@@ -1623,10 +1623,10 @@ pub fn serve<T: BeaconChainTypes>(
|
||||
});
|
||||
|
||||
Ok(api_types::GenericResponse::from(api_types::PeerCount {
|
||||
disconnecting,
|
||||
connecting,
|
||||
connected,
|
||||
connecting,
|
||||
disconnected,
|
||||
disconnecting,
|
||||
}))
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user