From 06362d32d3fe1c3b0ccfe5fdee71735578fd77be Mon Sep 17 00:00:00 2001 From: Johns Beharry Date: Thu, 21 Mar 2019 11:10:15 +0100 Subject: [PATCH] chore(hashing/merkle_root): remove semi colon on returns Signed-off-by: Johns Beharry --- eth2/utils/hashing/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth2/utils/hashing/src/lib.rs b/eth2/utils/hashing/src/lib.rs index bbb37f6ab..68e29fc9b 100644 --- a/eth2/utils/hashing/src/lib.rs +++ b/eth2/utils/hashing/src/lib.rs @@ -15,7 +15,7 @@ pub fn merkle_root(values: &[Vec]) -> Option> { // check size of vector > 0 and ^ 2 if values.is_empty() || !values_len.is_power_of_two() { - return None + return None; } // vector to store hashes @@ -35,7 +35,7 @@ pub fn merkle_root(values: &[Vec]) -> Option> { } // the root hash will be at index 1 - return Some(o[1].clone()) + return Some(o[1].clone()); } #[cfg(test)]