Skip to content

Commit bd68de8

Browse files
committed
remove unneeded and unidiomatic must_use
1 parent d6650e0 commit bd68de8

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/libcore/num/f32.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,6 @@ impl f32 {
851851
/// # .zip([-5.0, 0.1, 10.0, 99.0, f32::INFINITY, f32::NAN].iter())
852852
/// # .all(|(a, b)| a.to_bits() == b.to_bits()))
853853
/// ```
854-
#[must_use = "method returns a new number and does not mutate the original value"]
855854
#[unstable(feature = "total_cmp", issue = "none")]
856855
#[inline]
857856
pub fn total_cmp(&self, other: &Self) -> crate::cmp::Ordering {

src/libcore/num/f64.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,6 @@ impl f64 {
865865
/// # .zip([-5.0, 0.1, 10.0, 99.0, f64::INFINITY, f64::NAN].iter())
866866
/// # .all(|(a, b)| a.to_bits() == b.to_bits()))
867867
/// ```
868-
#[must_use = "method returns a new number and does not mutate the original value"]
869868
#[unstable(feature = "total_cmp", issue = "none")]
870869
#[inline]
871870
pub fn total_cmp(&self, other: &Self) -> crate::cmp::Ordering {

0 commit comments

Comments
 (0)