Remove unnecessary returns

This commit is contained in:
Henry de Valence 2017-04-02 23:39:45 +02:00
parent 7f4b96150d
commit 3705346afa
2 changed files with 2 additions and 3 deletions

View file

@ -927,8 +927,7 @@ impl ExtendedPoint {
r = s.double(); s = r.to_projective();
}
// Unroll last iteration so we can go directly to_extended()
r = s.double();
return r.to_extended();
s.double().to_extended()
}
/// Determine if this point is of small order.

View file

@ -907,7 +907,7 @@ impl FieldElement {
///
/// If zero, return `1u8`. Otherwise, return `0u8`.
pub fn is_zero(&self) -> u8 {
return 1u8 & (!self.is_nonzero());
1u8 & (!self.is_nonzero())
}
/// Determine if this `FieldElement` is non-zero.