Skip to content

Commit e22a9f6

Browse files
authored
elliptic-curve: fix Nightly compiler warnings (#1758)
`#[must_use]` annotations have no effect on trait methods.
1 parent 1fdcdc7 commit e22a9f6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

elliptic-curve/src/dev.rs

-3
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,10 @@ impl Field for Scalar {
114114
self.0.is_zero()
115115
}
116116

117-
#[must_use]
118117
fn square(&self) -> Self {
119118
unimplemented!();
120119
}
121120

122-
#[must_use]
123121
fn double(&self) -> Self {
124122
self.add(self)
125123
}
@@ -601,7 +599,6 @@ impl group::Group for ProjectivePoint {
601599
Choice::from(u8::from(self == &Self::Identity))
602600
}
603601

604-
#[must_use]
605602
fn double(&self) -> Self {
606603
unimplemented!();
607604
}

0 commit comments

Comments
 (0)