You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clippy has recently introduced new lint type_repetition_in_bounds and apparently serde-generated code (#[derive(Serialize, Deserialize)]) triggers this lint in some cases.
Checking playground v0.0.1 (/playground)
warning: this type has already been used as a bound predicate
--> src/main.rs:8:17
|
8 | #[derive(Debug, Serialize, Deserialize)]
| ^^^^^^^^^
|
note: lint level defined here
--> src/main.rs:1:9
|
1 | #![warn(clippy::type_repetition_in_bounds)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: consider combining the bounds: `S: Foo + _serde::Serialize`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_repetition_in_bounds
warning: this type has already been used as a bound predicate
--> src/main.rs:8:28
|
8 | #[derive(Debug, Serialize, Deserialize)]
| ^^^^^^^^^^^
|
= help: consider combining the bounds: `S: Foo + _serde::Deserialize`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_repetition_in_bounds
Finished dev [unoptimized + debuginfo] target(s) in 0.61s
The text was updated successfully, but these errors were encountered:
imp
changed the title
serve generated code triggers new clippy warning
serde generated code triggers new clippy warning
Aug 2, 2019
imp
changed the title
serde generated code triggers new clippy warning
serde generated code triggers new clippy::type_repetition_in_bounds warning
Aug 2, 2019
Clippy has recently introduced new lint type_repetition_in_bounds and apparently serde-generated code (
#[derive(Serialize, Deserialize)]
) triggers this lint in some cases.Code example
The text was updated successfully, but these errors were encountered: