We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
#[must_use]
1 parent f3515fb commit 3e66ba7Copy full SHA for 3e66ba7
src/tools/clippy/clippy_lints/src/infinite_iter.rs
@@ -94,7 +94,6 @@ impl Finiteness {
94
}
95
96
impl From<bool> for Finiteness {
97
- #[must_use]
98
fn from(b: bool) -> Self {
99
if b { Infinite } else { Finite }
100
src/tools/clippy/clippy_utils/src/consts.rs
@@ -351,21 +351,18 @@ pub enum FullInt {
351
352
353
impl PartialEq for FullInt {
354
355
fn eq(&self, other: &Self) -> bool {
356
self.cmp(other) == Ordering::Equal
357
358
359
360
impl PartialOrd for FullInt {
361
362
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
363
Some(self.cmp(other))
364
365
366
367
impl Ord for FullInt {
368
369
fn cmp(&self, other: &Self) -> Ordering {
370
use FullInt::{S, U};
371
0 commit comments