Remove unnecessary returns

This commit is contained in:
Henry de Valence 2017-04-02 23:28:01 +02:00
parent b3041f2adc
commit c8e7e22ddf

View file

@ -86,7 +86,7 @@ impl PartialEq for FieldElement {
for i in 0..32 { for i in 0..32 {
are_equal &= self_bytes[i] == other_bytes[i]; are_equal &= self_bytes[i] == other_bytes[i];
} }
return are_equal; are_equal
} }
} }
@ -923,7 +923,7 @@ impl FieldElement {
for b in &bytes { for b in &bytes {
x |= *b; x |= *b;
} }
return byte_is_nonzero(x); byte_is_nonzero(x)
} }
#[cfg(not(feature="radix_51"))] #[cfg(not(feature="radix_51"))]