From 40e94f53b651030c9843dbbec46ae964fbccdb27 Mon Sep 17 00:00:00 2001 From: Ignotus Peverell Date: Fri, 14 Dec 2018 04:51:52 +0000 Subject: [PATCH] rustfmt --- etc/gen_gen/src/bin/gen_gen.rs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/etc/gen_gen/src/bin/gen_gen.rs b/etc/gen_gen/src/bin/gen_gen.rs index a6a09eb9e..9f7fb982e 100644 --- a/etc/gen_gen/src/bin/gen_gen.rs +++ b/etc/gen_gen/src/bin/gen_gen.rs @@ -108,7 +108,7 @@ fn main() { solver_stats.get_plugin_name(), solver_stats.get_device_name(), solver_stats.get_error_reason(), - ); + ); return; } @@ -172,11 +172,17 @@ fn update_genesis_rs(gen: &core::core::Block) { )); replacements.push(( "prev_root".to_string(), - format!("Hash::from_hex(\"{}\").unwrap()", gen.header.prev_root.to_hex()), + format!( + "Hash::from_hex(\"{}\").unwrap()", + gen.header.prev_root.to_hex() + ), )); replacements.push(( "output_root".to_string(), - format!("Hash::from_hex(\"{}\").unwrap()", gen.header.output_root.to_hex()), + format!( + "Hash::from_hex(\"{}\").unwrap()", + gen.header.output_root.to_hex() + ), )); replacements.push(( "range_proof_root".to_string(), @@ -187,7 +193,10 @@ fn update_genesis_rs(gen: &core::core::Block) { )); replacements.push(( "kernel_root".to_string(), - format!("Hash::from_hex(\"{}\").unwrap()", gen.header.kernel_root.to_hex()), + format!( + "Hash::from_hex(\"{}\").unwrap()", + gen.header.kernel_root.to_hex() + ), )); replacements.push(( "total_kernel_offset".to_string(),