From 28a2ce2bdc9f994255011a11896cee28cf0900ed Mon Sep 17 00:00:00 2001 From: Luke Anderson Date: Wed, 4 Sep 2019 14:19:48 +1000 Subject: [PATCH] Fix formatting with rustfmt. --- beacon_node/rest_api/src/beacon.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/beacon_node/rest_api/src/beacon.rs b/beacon_node/rest_api/src/beacon.rs index 36e7f6c57..11e1446d9 100644 --- a/beacon_node/rest_api/src/beacon.rs +++ b/beacon_node/rest_api/src/beacon.rs @@ -174,10 +174,13 @@ pub fn get_state(req: Request) -> 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);