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)]