From 6585910c2a5afb89adc850133ae0dff57377d4f4 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Tue, 5 Jan 2016 19:12:19 +0100 Subject: [PATCH] Whitespace fixes. --- src/spec.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/spec.rs b/src/spec.rs index 7386e55e9..872c41541 100644 --- a/src/spec.rs +++ b/src/spec.rs @@ -20,8 +20,6 @@ use null_engine::NullEngine; use denominations::*; use header::*; -// TODO: need a JSON->cost closure converter. - /// Converts file from base64 gzipped bytes to json pub fn base_to_json(source: &[u8]) -> Json { // there is probably no need to store genesis in based64 gzip, @@ -53,9 +51,9 @@ pub fn json_to_rlp(json: &Json) -> Bytes { /// Convert JSON to a string->RLP map. pub fn json_to_rlp_map(json: &Json) -> HashMap { json.as_object().unwrap().iter().map(|(k, v)| (k, json_to_rlp(v))).fold(HashMap::new(), |mut acc, kv| { - acc.insert(kv.0.clone(), kv.1); - acc - }) + acc.insert(kv.0.clone(), kv.1); + acc + }) } /// Parameters for a block chain; includes both those intrinsic to the design of the