clippy
10 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 10 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.74.0-nightly (203c57dbe 2023-09-17)
- cargo 1.74.0-nightly (d5336f813 2023-09-14)
- clippy 0.1.74 (203c57d 2023-09-17)
Annotations
Check warning on line 779 in tests/tests.rs
github-actions / clippy
use of a disallowed/placeholder name `foo`
warning: use of a disallowed/placeholder name `foo`
--> tests/tests.rs:779:9
|
779 | let foo = Foo::builder().with_x_value(1).with_y_value(2).build();
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_names
Check warning on line 780 in tests/tests.rs
github-actions / clippy
consider adding a `;` to the last statement for consistent formatting
warning: consider adding a `;` to the last statement for consistent formatting
--> tests/tests.rs:780:5
|
780 | assert_eq!(foo, Foo { x: 1, y: 2 })
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `assert_eq!(foo, Foo { x: 1, y: 2 });`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
Check warning on line 766 in tests/tests.rs
github-actions / clippy
use of a disallowed/placeholder name `foo`
warning: use of a disallowed/placeholder name `foo`
--> tests/tests.rs:766:9
|
766 | let foo = Foo::builder().x_value(1).y_value(2).build();
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_names
Check warning on line 767 in tests/tests.rs
github-actions / clippy
consider adding a `;` to the last statement for consistent formatting
warning: consider adding a `;` to the last statement for consistent formatting
--> tests/tests.rs:767:5
|
767 | assert_eq!(foo, Foo { x: 1, y: 2 })
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `assert_eq!(foo, Foo { x: 1, y: 2 });`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
Check warning on line 753 in tests/tests.rs
github-actions / clippy
use of a disallowed/placeholder name `foo`
warning: use of a disallowed/placeholder name `foo`
--> tests/tests.rs:753:9
|
753 | let foo = Foo::builder().with_x(1).with_y(2).build();
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_names
Check warning on line 754 in tests/tests.rs
github-actions / clippy
consider adding a `;` to the last statement for consistent formatting
warning: consider adding a `;` to the last statement for consistent formatting
--> tests/tests.rs:754:5
|
754 | assert_eq!(foo, Foo { x: 1, y: 2 })
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `assert_eq!(foo, Foo { x: 1, y: 2 });`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
note: the lint level is defined here
--> tests/tests.rs:1:9
|
1 | #![warn(clippy::pedantic)]
| ^^^^^^^^^^^^^^^^
= note: `#[warn(clippy::semicolon_if_nothing_returned)]` implied by `#[warn(clippy::pedantic)]`
Check warning on line 400 in tests/tests.rs
github-actions / clippy
very complex type used. Consider factoring parts into `type` definitions
warning: very complex type used. Consider factoring parts into `type` definitions
--> tests/tests.rs:400:31
|
400 | fn m_default(self) -> FooBuilder<'a, X, Y, Z, (), (X_, Y_, Z_, ((),))> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
Check warning on line 394 in tests/tests.rs
github-actions / clippy
very complex type used. Consider factoring parts into `type` definitions
warning: very complex type used. Consider factoring parts into `type` definitions
--> tests/tests.rs:394:31
|
394 | fn z_default(self) -> FooBuilder<'a, X, Y, usize, M, (X_, Y_, (usize,), M_)> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
= note: `#[warn(clippy::type_complexity)]` on by default
Check warning on line 50 in tests/tests.rs
github-actions / clippy
use of a disallowed/placeholder name `foo`
warning: use of a disallowed/placeholder name `foo`
--> tests/tests.rs:50:13
|
50 | let foo = Foo::builder().x(&mut a).y(&mut b).build();
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_names
= note: `#[warn(clippy::disallowed_names)]` on by default
Check warning on line 30 in examples/complicate_build.rs
github-actions / clippy
use of a disallowed/placeholder name `foo`
warning: use of a disallowed/placeholder name `foo`
--> examples/complicate_build.rs:30:17
|
30 | let foo = self.__build();
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_names
= note: `#[warn(clippy::disallowed_names)]` on by default