remove unneeded and unidiomatic must_use
This commit is contained in:
parent
d6650e0d2b
commit
bd68de89b5
@ -851,7 +851,6 @@ impl f32 {
|
|||||||
/// # .zip([-5.0, 0.1, 10.0, 99.0, f32::INFINITY, f32::NAN].iter())
|
/// # .zip([-5.0, 0.1, 10.0, 99.0, f32::INFINITY, f32::NAN].iter())
|
||||||
/// # .all(|(a, b)| a.to_bits() == b.to_bits()))
|
/// # .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")]
|
#[unstable(feature = "total_cmp", issue = "none")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn total_cmp(&self, other: &Self) -> crate::cmp::Ordering {
|
pub fn total_cmp(&self, other: &Self) -> crate::cmp::Ordering {
|
||||||
|
@ -865,7 +865,6 @@ impl f64 {
|
|||||||
/// # .zip([-5.0, 0.1, 10.0, 99.0, f64::INFINITY, f64::NAN].iter())
|
/// # .zip([-5.0, 0.1, 10.0, 99.0, f64::INFINITY, f64::NAN].iter())
|
||||||
/// # .all(|(a, b)| a.to_bits() == b.to_bits()))
|
/// # .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")]
|
#[unstable(feature = "total_cmp", issue = "none")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn total_cmp(&self, other: &Self) -> crate::cmp::Ordering {
|
pub fn total_cmp(&self, other: &Self) -> crate::cmp::Ordering {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user