Fix cross compilation issue #368
clippy
45 warnings
Details
Results
| Message level | Amount |
|---|---|
| Internal compiler error | 0 |
| Error | 0 |
| Warning | 45 |
| Note | 0 |
| Help | 0 |
Versions
- rustc 1.86.0 (05f9846f8 2025-03-31)
- cargo 1.86.0 (adf9b6ad1 2025-02-28)
- clippy 0.1.86 (05f9846f89 2025-03-31)
Annotations
Check warning on line 83 in src/lipschitz_estimator.rs
github-actions / clippy
doc list item overindented
warning: doc list item overindented
--> src/lipschitz_estimator.rs:83:9
|
83 | /// value of the given function at `u_`, that is `f_(u_)`
| ^^^ help: try using ` ` (2 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
Check warning on line 80 in src/lipschitz_estimator.rs
github-actions / clippy
doc list item overindented
warning: doc list item overindented
--> src/lipschitz_estimator.rs:80:9
|
80 | /// before you provide it to this method.
| ^^^ help: try using ` ` (2 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
Check warning on line 79 in src/lipschitz_estimator.rs
github-actions / clippy
doc list item overindented
warning: doc list item overindented
--> src/lipschitz_estimator.rs:79:9
|
79 | /// to keep the original value of `u_`, you need to make a copy of the variable
| ^^^ help: try using ` ` (2 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
Check warning on line 78 in src/lipschitz_estimator.rs
github-actions / clippy
doc list item overindented
warning: doc list item overindented
--> src/lipschitz_estimator.rs:78:9
|
78 | /// reference). The value of `u_` at exit is slightly perturbed. If you need
| ^^^ help: try using ` ` (2 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
Check warning on line 77 in src/lipschitz_estimator.rs
github-actions / clippy
doc list item overindented
warning: doc list item overindented
--> src/lipschitz_estimator.rs:77:9
|
77 | /// On exit: the provided slice is modified (this is why it is a mutable
| ^^^ help: try using ` ` (2 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
Check warning on line 35 in src/core/solver_status.rs
github-actions / clippy
doc list item overindented
warning: doc list item overindented
--> src/core/solver_status.rs:35:9
|
35 | /// quality
| ^^^ help: try using ` ` (2 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
Check warning on line 301 in src/core/panoc/panoc_engine.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/core/panoc/panoc_engine.rs:301:6
|
301 | impl<'a, GradientType, ConstraintType, CostType> AlgorithmEngine
| ^^
302 | for PANOCEngine<'a, GradientType, ConstraintType, CostType>
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
301 ~ impl<GradientType, ConstraintType, CostType> AlgorithmEngine
302 ~ for PANOCEngine<'_, GradientType, ConstraintType, CostType>
|
Check warning on line 161 in src/core/panoc/panoc_cache.rs
github-actions / clippy
doc list item without indentation
warning: doc list item without indentation
--> src/core/panoc/panoc_cache.rs:161:9
|
161 | /// are satisfied.
| ^
|
= help: if this is supposed to be its own paragraph, add a blank line
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
= note: `#[warn(clippy::doc_lazy_continuation)]` on by default
help: indent this line
|
161 | /// are satisfied.
| +++
Check warning on line 75 in src/core/panoc/panoc_cache.rs
github-actions / clippy
usage of a legacy numeric constant
warning: usage of a legacy numeric constant
--> src/core/panoc/panoc_cache.rs:75:29
|
75 | norm_gamma_fpr: std::f64::INFINITY,
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
75 - norm_gamma_fpr: std::f64::INFINITY,
75 + norm_gamma_fpr: f64::INFINITY,
|
Check warning on line 46 in src/core/fbs/fbs_cache.rs
github-actions / clippy
usage of a legacy numeric constant
warning: usage of a legacy numeric constant
--> src/core/fbs/fbs_cache.rs:46:23
|
46 | norm_fpr: std::f64::INFINITY,
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
|
46 - norm_fpr: std::f64::INFINITY,
46 + norm_fpr: f64::INFINITY,
|
Check warning on line 20 in src/constraints/sphere2.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/constraints/sphere2.rs:20:6
|
20 | impl<'a> Constraint for Sphere2<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
20 - impl<'a> Constraint for Sphere2<'a> {
20 + impl Constraint for Sphere2<'_> {
|
Check warning on line 47 in src/constraints/rectangle.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/constraints/rectangle.rs:47:6
|
47 | impl<'a> Constraint for Rectangle<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
47 - impl<'a> Constraint for Rectangle<'a> {
47 + impl Constraint for Rectangle<'_> {
|
Check warning on line 72 in src/constraints/hyperplane.rs
github-actions / clippy
doc list item overindented
warning: doc list item overindented
--> src/constraints/hyperplane.rs:72:9
|
72 | /// (out) projection on the second-order cone
| ^^^ help: try using ` ` (2 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
Check warning on line 58 in src/constraints/hyperplane.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/constraints/hyperplane.rs:58:6
|
58 | impl<'a> Constraint for Hyperplane<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
58 - impl<'a> Constraint for Hyperplane<'a> {
58 + impl Constraint for Hyperplane<'_> {
|
Check warning on line 75 in src/constraints/halfspace.rs
github-actions / clippy
doc list item overindented
warning: doc list item overindented
--> src/constraints/halfspace.rs:75:9
|
75 | /// (out) projection on the second-order cone
| ^^^ help: try using ` ` (2 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
Check warning on line 58 in src/constraints/halfspace.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/constraints/halfspace.rs:58:6
|
58 | impl<'a> Constraint for Halfspace<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
58 - impl<'a> Constraint for Halfspace<'a> {
58 + impl Constraint for Halfspace<'_> {
|
Check warning on line 55 in src/constraints/finite.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/constraints/finite.rs:55:6
|
55 | impl<'a> Constraint for FiniteSet<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
55 - impl<'a> Constraint for FiniteSet<'a> {
55 + impl Constraint for FiniteSet<'_> {
|
Check warning on line 130 in src/constraints/cartesian_product.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/constraints/cartesian_product.rs:130:6
|
130 | impl<'a> Constraint for CartesianProduct<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
130 - impl<'a> Constraint for CartesianProduct<'a> {
130 + impl Constraint for CartesianProduct<'_> {
|
Check warning on line 23 in src/constraints/ballinf.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/constraints/ballinf.rs:23:6
|
23 | impl<'a> Constraint for BallInf<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
23 - impl<'a> Constraint for BallInf<'a> {
23 + impl Constraint for BallInf<'_> {
|
Check warning on line 21 in src/constraints/ball2.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/constraints/ball2.rs:21:6
|
21 | impl<'a> Constraint for Ball2<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
21 - impl<'a> Constraint for Ball2<'a> {
21 + impl Constraint for Ball2<'_> {
|
Check warning on line 42 in src/constraints/ball1.rs
github-actions / clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/constraints/ball1.rs:42:6
|
42 | impl<'a> Constraint for Ball1<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
42 - impl<'a> Constraint for Ball1<'a> {
42 + impl Constraint for Ball1<'_> {
|
Check warning on line 145 in src/alm/alm_problem.rs
github-actions / clippy
this function has too many arguments (9/7)
warning: this function has too many arguments (9/7)
--> src/alm/alm_problem.rs:135:5
|
135 | / pub fn new(
136 | | constraints: ConstraintsType,
137 | | alm_set_c: Option<AlmSetC>,
138 | | alm_set_y: Option<LagrangeSetY>,
... |
144 | | n2: usize,
145 | | ) -> Self {
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
Check warning on line 106 in src/alm/alm_problem.rs
github-actions / clippy
doc list item overindented
warning: doc list item overindented
--> src/alm/alm_problem.rs:106:8
|
106 | /// compact subset of $C^*$ (the convex conjugate of the convex set $C{}\subseteq{}\mathbb{R}^{n_1}$)
| ^^^^ help: try using ` ` (3 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
Check warning on line 125 in src/alm/alm_optimizer_status.rs
github-actions / clippy
doc list item overindented
warning: doc list item overindented
--> src/alm/alm_optimizer_status.rs:125:9
|
125 | /// into an internal field of `AlmOptimizerStatus`)
| ^^^ help: try using ` ` (2 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
Check warning on line 22 in src/alm/alm_optimizer_status.rs
github-actions / clippy
empty doc comment
warning: empty doc comment
--> src/alm/alm_optimizer_status.rs:22:5
|
22 | ///
| ^^^
|
= help: consider removing or filling it
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
= note: `#[warn(clippy::empty_docs)]` on by default