Skip to content

Port nightly test expectation to beta

3192e1a
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Port nightly test expectation to beta #170

Port nightly test expectation to beta
3192e1a
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy succeeded Aug 6, 2025 in 1s

clippy

8 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 8
Note 0
Help 0

Versions

  • rustc 1.88.0 (6b00bc388 2025-06-23)
  • cargo 1.88.0 (873a06493 2025-05-10)
  • clippy 0.1.88 (6b00bc3880 2025-06-23)

Annotations

Check warning on line 242 in num_enum/src/../README.md

See this annotation in the file changed.

@github-actions github-actions / clippy

needless `fn main` in doctest

warning: needless `fn main` in doctest
   --> num_enum/src/../README.md:222:1
    |
222 | / use num_enum::FromPrimitive;
223 | | use std::convert::TryFrom;
224 | |
225 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
...   |
241 | |     assert_eq!(two, Number::NonZero(2_u8));
242 | | }
    | |_^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main

Check warning on line 210 in num_enum/src/../README.md

See this annotation in the file changed.

@github-actions github-actions / clippy

needless `fn main` in doctest

warning: needless `fn main` in doctest
   --> num_enum/src/../README.md:190:1
    |
190 | / use num_enum::FromPrimitive;
191 | | use std::convert::TryFrom;
192 | |
193 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
...   |
209 | |     assert_eq!(two, Number::NonZero);
210 | | }
    | |_^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main

Check warning on line 178 in num_enum/src/../README.md

See this annotation in the file changed.

@github-actions github-actions / clippy

needless `fn main` in doctest

warning: needless `fn main` in doctest
   --> num_enum/src/../README.md:159:1
    |
159 | / use num_enum::FromPrimitive;
160 | |
161 | | #[derive(Debug, Eq, PartialEq, FromPrimitive)]
162 | | #[repr(u8)]
...   |
177 | |     );
178 | | }
    | |_^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main

Check warning on line 118 in num_enum/src/../README.md

See this annotation in the file changed.

@github-actions github-actions / clippy

needless `fn main` in doctest

warning: needless `fn main` in doctest
   --> num_enum/src/../README.md:96:1
    |
96  | / use num_enum::TryFromPrimitive;
97  | | use std::convert::TryFrom;
98  | |
99  | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
...   |
117 | |     assert_eq!(many, Ok(Number::Many));
118 | | }
    | |_^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main

Check warning on line 90 in num_enum/src/../README.md

See this annotation in the file changed.

@github-actions github-actions / clippy

needless `fn main` in doctest

warning: needless `fn main` in doctest
  --> num_enum/src/../README.md:64:1
   |
64 | / use num_enum::TryFromPrimitive;
65 | | use std::convert::TryFrom;
66 | |
67 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
...  |
89 | |     );
90 | | }
   | |_^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main

Check warning on line 52 in num_enum/src/../README.md

See this annotation in the file changed.

@github-actions github-actions / clippy

needless `fn main` in doctest

warning: needless `fn main` in doctest
  --> num_enum/src/../README.md:33:1
   |
33 | / use num_enum::TryFromPrimitive;
34 | | use std::convert::TryFrom;
35 | |
36 | | #[derive(Debug, Eq, PartialEq, TryFromPrimitive)]
...  |
51 | |     );
52 | | }
   | |_^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main

Check warning on line 25 in num_enum/src/../README.md

See this annotation in the file changed.

@github-actions github-actions / clippy

needless `fn main` in doctest

warning: needless `fn main` in doctest
  --> num_enum/src/../README.md:13:1
   |
13 | / use num_enum::IntoPrimitive;
14 | |
15 | | #[derive(IntoPrimitive)]
16 | | #[repr(u8)]
...  |
24 | |     assert_eq!(zero, 0u8);
25 | | }
   | |_^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_doctest_main
   = note: `#[warn(clippy::needless_doctest_main)]` on by default

Check warning on line 40 in num_enum_derive/src/parsing.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this `map_or` can be simplified

warning: this `map_or` can be simplified
  --> num_enum_derive/src/parsing.rs:34:31
   |
34 |                       return Ok(variants.map_or(false, |v| {
   |  _______________________________^
35 | |                         v == self
36 | |                             .variants
37 | |                             .iter()
38 | |                             .map(|v| v.alternative_values.len() + 1)
39 | |                             .sum()
40 | |                     }));
   | |______________________^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
   = note: `#[warn(clippy::unnecessary_map_or)]` on by default
help: use is_some_and instead
   |
34 -                     return Ok(variants.map_or(false, |v| {
34 +                     return Ok(variants.is_some_and(|v| {
   |