1
Fork 0

Remove ignored #[must_use] attributes from Clippy

The `#[must_use]` attribute has no effect when applied to methods in
trait implementations.
This commit is contained in:
Samuel Tardieu 2025-02-12 15:22:32 +01:00
parent f3515fb127
commit 3e66ba73d5
2 changed files with 0 additions and 4 deletions

View file

@ -94,7 +94,6 @@ impl Finiteness {
}
impl From<bool> for Finiteness {
#[must_use]
fn from(b: bool) -> Self {
if b { Infinite } else { Finite }
}

View file

@ -351,21 +351,18 @@ pub enum FullInt {
}
impl PartialEq for FullInt {
#[must_use]
fn eq(&self, other: &Self) -> bool {
self.cmp(other) == Ordering::Equal
}
}
impl PartialOrd for FullInt {
#[must_use]
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
Some(self.cmp(other))
}
}
impl Ord for FullInt {
#[must_use]
fn cmp(&self, other: &Self) -> Ordering {
use FullInt::{S, U};