clippy
2 errors, 12 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 2 |
Warning | 12 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.74.1 (a28077b28 2023-12-04)
- cargo 1.74.1 (ecb9851af 2023-10-18)
- clippy 0.1.74 (a28077b 2023-12-04)
Annotations
Check failure on line 119 in src/metrics/rocauc.rs
github-actions / clippy
method `revert` has an incompatible type for trait
error[E0053]: method `revert` has an incompatible type for trait
--> src/metrics/rocauc.rs:119:17
|
119 | y_pred: &ClassifierOutput<F>,
| ^^^^^^^^^^^^^^^^^^^^
| |
| expected `common::ClassifierTarget`, found `common::ClassifierOutput<F>`
| help: change the parameter type to match the trait: `&common::ClassifierTarget`
|
note: type in trait
--> src/metrics/traits.rs:18:17
|
18 | y_true: &ClassifierTarget,
| ^^^^^^^^^^^^^^^^^
= note: expected signature `fn(&mut metrics::rocauc::ROCAUC<F>, &common::ClassifierTarget, &common::ClassifierOutput<F>, std::option::Option<_>)`
found signature `fn(&mut metrics::rocauc::ROCAUC<F>, &common::ClassifierOutput<F>, &common::ClassifierTarget, std::option::Option<_>)`
Check failure on line 98 in src/metrics/rocauc.rs
github-actions / clippy
method `update` has an incompatible type for trait
error[E0053]: method `update` has an incompatible type for trait
--> src/metrics/rocauc.rs:98:17
|
98 | y_pred: &ClassifierOutput<F>,
| ^^^^^^^^^^^^^^^^^^^^
| |
| expected `common::ClassifierTarget`, found `common::ClassifierOutput<F>`
| help: change the parameter type to match the trait: `&common::ClassifierTarget`
|
note: type in trait
--> src/metrics/traits.rs:12:17
|
12 | y_true: &ClassifierTarget,
| ^^^^^^^^^^^^^^^^^
= note: expected signature `fn(&mut metrics::rocauc::ROCAUC<F>, &common::ClassifierTarget, &common::ClassifierOutput<F>, std::option::Option<_>)`
found signature `fn(&mut metrics::rocauc::ROCAUC<F>, &common::ClassifierOutput<F>, &common::ClassifierTarget, std::option::Option<_>)`
Check warning on line 88 in src/metrics/rocauc.rs
github-actions / clippy
redundant field names in struct initialization
warning: redundant field names in struct initialization
--> src/metrics/rocauc.rs:88:13
|
88 | cms: cms,
| ^^^^^^^^ help: replace it with: `cms`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
Check warning on line 87 in src/metrics/rocauc.rs
github-actions / clippy
redundant field names in struct initialization
warning: redundant field names in struct initialization
--> src/metrics/rocauc.rs:87:13
|
87 | thresholds: thresholds,
| ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `thresholds`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
Check warning on line 86 in src/metrics/rocauc.rs
github-actions / clippy
redundant field names in struct initialization
warning: redundant field names in struct initialization
--> src/metrics/rocauc.rs:86:13
|
86 | pos_val: pos_val,
| ^^^^^^^^^^^^^^^^ help: replace it with: `pos_val`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
Check warning on line 278 in src/anomaly/half_space_tree.rs
github-actions / clippy
unused import: `super::*`
warning: unused import: `super::*`
--> src/anomaly/half_space_tree.rs:278:9
|
278 | use super::*;
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
Check warning on line 131 in src/anomaly/half_space_tree.rs
github-actions / clippy
redundant field names in struct initialization
warning: redundant field names in struct initialization
--> src/anomaly/half_space_tree.rs:131:13
|
131 | pos_val: pos_val,
| ^^^^^^^^^^^^^^^^ help: replace it with: `pos_val`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
Check warning on line 129 in src/anomaly/half_space_tree.rs
github-actions / clippy
redundant field names in struct initialization
warning: redundant field names in struct initialization
--> src/anomaly/half_space_tree.rs:129:13
|
129 | trees: trees,
| ^^^^^^^^^^^^ help: replace it with: `trees`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
Check warning on line 128 in src/anomaly/half_space_tree.rs
github-actions / clippy
redundant field names in struct initialization
warning: redundant field names in struct initialization
--> src/anomaly/half_space_tree.rs:128:13
|
128 | n_nodes: n_nodes,
| ^^^^^^^^^^^^^^^^ help: replace it with: `n_nodes`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
Check warning on line 127 in src/anomaly/half_space_tree.rs
github-actions / clippy
redundant field names in struct initialization
warning: redundant field names in struct initialization
--> src/anomaly/half_space_tree.rs:127:13
|
127 | n_branches: n_branches,
| ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `n_branches`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
Check warning on line 126 in src/anomaly/half_space_tree.rs
github-actions / clippy
redundant field names in struct initialization
warning: redundant field names in struct initialization
--> src/anomaly/half_space_tree.rs:126:13
|
126 | rng: rng,
| ^^^^^^^^ help: replace it with: `rng`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
Check warning on line 124 in src/anomaly/half_space_tree.rs
github-actions / clippy
redundant field names in struct initialization
warning: redundant field names in struct initialization
--> src/anomaly/half_space_tree.rs:124:13
|
124 | height: height,
| ^^^^^^^^^^^^^^ help: replace it with: `height`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
Check warning on line 123 in src/anomaly/half_space_tree.rs
github-actions / clippy
redundant field names in struct initialization
warning: redundant field names in struct initialization
--> src/anomaly/half_space_tree.rs:123:13
|
123 | n_trees: n_trees,
| ^^^^^^^^^^^^^^^^ help: replace it with: `n_trees`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
Check warning on line 121 in src/anomaly/half_space_tree.rs
github-actions / clippy
redundant field names in struct initialization
warning: redundant field names in struct initialization
--> src/anomaly/half_space_tree.rs:121:13
|
121 | window_size: window_size,
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `window_size`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
= note: `#[warn(clippy::redundant_field_names)]` on by default