Skip to content

Commit 931e87b

Browse files
committed
Remove #[must_use] on trait method implementations
Fixes `warning: `#[must_use]` has no effect when applied to a provided trait method` on nightly
1 parent 634b8a2 commit 931e87b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

crates/utils/src/point.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ macro_rules! point_impl {
5959
type Output = Self;
6060

6161
#[inline]
62-
#[must_use]
6362
fn add(self, rhs: Self) -> Self {
6463
Self{
6564
$($f: self.$f + rhs.$f,)+
@@ -78,7 +77,6 @@ macro_rules! point_impl {
7877
type Output = Self;
7978

8079
#[inline]
81-
#[must_use]
8280
fn mul(self, rhs: T) -> Self {
8381
Self{
8482
$($f: self.$f * rhs,)+
@@ -97,7 +95,6 @@ macro_rules! point_impl {
9795
type Output = Self;
9896

9997
#[inline]
100-
#[must_use]
10198
fn sub(self, rhs: Self) -> Self {
10299
Self{
103100
$($f: self.$f - rhs.$f,)+

0 commit comments

Comments
 (0)