Skip to content

Commit

Permalink
Remove hidden field from ExtendedGcd
Browse files Browse the repository at this point in the history
Fixes #39
  • Loading branch information
tspiteri committed Jan 25, 2022
1 parent d5267dc commit 172b0e3
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 172b0e3

Please sign in to comment.