mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Remove unnecessary returns
This commit is contained in:
parent
7f4b96150d
commit
3705346afa
2 changed files with 2 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue