Make CompletedPoint::into_extended take ownership, and inline.

This commit is contained in:
Sean Bowe 2019-05-31 19:41:15 -06:00
parent 803b6a3e65
commit 02b05eb075
No known key found for this signature in database
GPG Key ID: 95684257D8F8B031
1 changed files with 2 additions and 1 deletions

View File

@ -829,7 +829,8 @@ impl CompletedPoint {
///
/// The resulting T coordinate is utvz/zt = uv, and so
/// T1 = u, T2 = v, without loss of generality.
fn into_extended(&self) -> ExtendedPoint {
#[inline]
fn into_extended(self) -> ExtendedPoint {
ExtendedPoint {
u: &self.u * &self.t,
v: &self.v * &self.z,