Skip to content

Commit

Permalink
Merge #46
Browse files Browse the repository at this point in the history
46: Remove hidden field from ExtendedGcd r=cuviper a=tspiteri

Fixes #39

Co-authored-by: Trevor Spiteri <tspiteri@ieee.org>
  • Loading branch information
bors[bot] and tspiteri committed Mar 21, 2022
2 parents 7a8397f + 172b0e3 commit d839ba5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/lib.rs
Expand Up @@ -187,14 +187,12 @@ pub trait Integer: Sized + Num + PartialOrd + Ord + Eq {
gcd: r.1,
x: s.1,
y: t.1,
_hidden: (),
}
} else {
ExtendedGcd {
gcd: Self::zero() - r.1,
x: Self::zero() - s.1,
y: Self::zero() - t.1,
_hidden: (),
}
}
}
Expand Down Expand Up @@ -356,7 +354,6 @@ pub struct ExtendedGcd<A> {
pub gcd: A,
pub x: A,
pub y: A,
_hidden: (),
}

/// Simultaneous integer division and modulus
Expand Down

0 comments on commit d839ba5

Please sign in to comment.