mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 11:41:51 +00:00
Fix formatting with rustfmt.
This commit is contained in:
@@ -174,10 +174,13 @@ pub fn get_state<T: BeaconChainTypes + 'static>(req: Request<Body>) -> ApiResult
|
||||
return Err(e);
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
Err(ApiError::InvalidQueryParams(_)) => {
|
||||
// No parameters provided at all, use current slot.
|
||||
(String::from("slot"), beacon_chain.head().beacon_state.slot.to_string())
|
||||
(
|
||||
String::from("slot"),
|
||||
beacon_chain.head().beacon_state.slot.to_string(),
|
||||
)
|
||||
}
|
||||
Err(e) => {
|
||||
return Err(e);
|
||||
|
||||
Reference in New Issue
Block a user