remove newtypes in favor of Miniconf<{Leaf,Internal}>
#428
clippy
6 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 6 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.71.0 (8ede3aae2 2023-07-12)
- cargo 1.71.0 (cfd3bbd8f 2023-06-08)
- clippy 0.1.71 (8ede3aa 2023-07-12)
Annotations
Check failure on line 78 in src/mqtt_client/mod.rs
github-actions / clippy
missing generics for trait `Miniconf`
error[E0107]: missing generics for trait `Miniconf`
--> src/mqtt_client/mod.rs:78:45
|
78 | impl<C: embedded_time::Clock, M: super::Miniconf> StateMachineContext for Context<C, M> {
| ^^^^^^^^ expected 1 generic argument
|
note: trait defined here, with 1 generic parameter: `Y`
--> src/lib.rs:123:11
|
123 | pub trait Miniconf<Y> {
| ^^^^^^^^ -
help: add missing generic argument
|
78 | impl<C: embedded_time::Clock, M: super::Miniconf<Y>> StateMachineContext for Context<C, M> {
| +++
Check failure on line 60 in src/mqtt_client/mod.rs
github-actions / clippy
missing generics for trait `Miniconf`
error[E0107]: missing generics for trait `Miniconf`
--> src/mqtt_client/mod.rs:60:45
|
60 | impl<C: embedded_time::Clock, M: super::Miniconf> Context<C, M> {
| ^^^^^^^^ expected 1 generic argument
|
note: trait defined here, with 1 generic parameter: `Y`
--> src/lib.rs:123:11
|
123 | pub trait Miniconf<Y> {
| ^^^^^^^^ -
help: add missing generic argument
|
60 | impl<C: embedded_time::Clock, M: super::Miniconf<Y>> Context<C, M> {
| +++
Check failure on line 179 in src/mqtt_client/mod.rs
github-actions / clippy
trait takes 2 generic arguments but 1 generic argument was supplied
error[E0107]: trait takes 2 generic arguments but 1 generic argument was supplied
--> src/mqtt_client/mod.rs:179:15
|
179 | Settings: SerDe<JsonCoreSlash> + Clone,
| ^^^^^ ------------- supplied 1 generic argument
| |
| expected 2 generic arguments
|
note: trait defined here, with 2 generic parameters: `S`, `Y`
--> src/lib.rs:187:11
|
187 | pub trait SerDe<S, Y>: Miniconf<Y> + Sized {
| ^^^^^ - -
help: add missing generic argument
|
179 | Settings: SerDe<JsonCoreSlash, Y> + Clone,
| +++
Check failure on line 163 in src/mqtt_client/mod.rs
github-actions / clippy
trait takes 2 generic arguments but 1 generic argument was supplied
error[E0107]: trait takes 2 generic arguments but 1 generic argument was supplied
--> src/mqtt_client/mod.rs:163:15
|
163 | Settings: SerDe<JsonCoreSlash> + Clone,
| ^^^^^ ------------- supplied 1 generic argument
| |
| expected 2 generic arguments
|
note: trait defined here, with 2 generic parameters: `S`, `Y`
--> src/lib.rs:187:11
|
187 | pub trait SerDe<S, Y>: Miniconf<Y> + Sized {
| ^^^^^ - -
help: add missing generic argument
|
163 | Settings: SerDe<JsonCoreSlash, Y> + Clone,
| +++
Check failure on line 54 in src/mqtt_client/mod.rs
github-actions / clippy
missing generics for trait `Miniconf`
error[E0107]: missing generics for trait `Miniconf`
--> src/mqtt_client/mod.rs:54:59
|
54 | pub struct Context<C: embedded_time::Clock, M: super::Miniconf> {
| ^^^^^^^^ expected 1 generic argument
|
note: trait defined here, with 1 generic parameter: `Y`
--> src/lib.rs:123:11
|
123 | pub trait Miniconf<Y> {
| ^^^^^^^^ -
help: add missing generic argument
|
54 | pub struct Context<C: embedded_time::Clock, M: super::Miniconf<Y>> {
| +++
Check failure on line 27 in src/mqtt_client/mod.rs
github-actions / clippy
struct takes 5 generic arguments but 4 generic arguments were supplied
error[E0107]: struct takes 5 generic arguments but 4 generic arguments were supplied
--> src/mqtt_client/mod.rs:27:12
|
27 | crate::MiniconfIter<M, JsonCoreSlash, MAX_RECURSION_DEPTH, String<MAX_TOPIC_LENGTH>>;
| ^^^^^^^^^^^^ - ------------- ------------------- ------------------------ supplied 4 generic arguments
| |
| expected 5 generic arguments
|
note: struct defined here, with 5 generic parameters: `M`, `S`, `L`, `P`, `Y`
--> src/iter.rs:6:12
|
6 | pub struct MiniconfIter<M, S, const L: usize, P, Y> {
| ^^^^^^^^^^^^ - - -------------- - -
help: add missing generic argument
|
27 | crate::MiniconfIter<M, JsonCoreSlash, MAX_RECURSION_DEPTH, String<MAX_TOPIC_LENGTH>, Y>;
| +++