]> git.lizzy.rs Git - rust.git/commitdiff
remove unneeded and unidiomatic must_use
authorPyry Kontio <pyry.kontio@drasa.eu>
Mon, 25 May 2020 17:48:56 +0000 (02:48 +0900)
committerPyry Kontio <pyry.kontio@drasa.eu>
Mon, 25 May 2020 20:07:00 +0000 (05:07 +0900)
src/libcore/num/f32.rs
src/libcore/num/f64.rs

index 813e3077c3b8aa38cc78f5796e86170add0152c3..36b70587385cb18015af607b6176cb2efa42765b 100644 (file)
@@ -851,7 +851,6 @@ pub fn from_bits(v: u32) -> Self {
     /// #     .zip([-5.0, 0.1, 10.0, 99.0, f32::INFINITY, f32::NAN].iter())
     /// #     .all(|(a, b)| a.to_bits() == b.to_bits()))
     /// ```
-    #[must_use = "method returns a new number and does not mutate the original value"]
     #[unstable(feature = "total_cmp", issue = "none")]
     #[inline]
     pub fn total_cmp(&self, other: &Self) -> crate::cmp::Ordering {
index 9c02180838014dc1a37d401cc20dfd6db60fc1cc..61711df3c65ef1150a69e85dc4fd1344145d07e1 100644 (file)
@@ -865,7 +865,6 @@ pub fn from_bits(v: u64) -> Self {
     /// #     .zip([-5.0, 0.1, 10.0, 99.0, f64::INFINITY, f64::NAN].iter())
     /// #     .all(|(a, b)| a.to_bits() == b.to_bits()))
     /// ```
-    #[must_use = "method returns a new number and does not mutate the original value"]
     #[unstable(feature = "total_cmp", issue = "none")]
     #[inline]
     pub fn total_cmp(&self, other: &Self) -> crate::cmp::Ordering {