♻️ utilize anyhow::bail
#1088
Annotations
5 errors and 1 warning
Run clechasseur/rs-clippy-check@v3:
src/modules/api.rs#L5
error: the following explicit lifetimes could be elided: 'a
--> src/modules/api.rs:5:6
|
5 | impl<'a> Api for Box<dyn 'a + Api> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
note: the lint level is defined here
--> src/main.rs:1:9
|
1 | #![deny(clippy::all)]
| ^^^^^^^^^^^
= note: `#[deny(clippy::needless_lifetimes)]` implied by `#[deny(clippy::all)]`
help: elide the lifetimes
|
5 - impl<'a> Api for Box<dyn 'a + Api> {
5 + impl Api for Box<dyn '_ + Api> {
|
|
Run clechasseur/rs-clippy-check@v3:
src/modules/api.rs#L57
error: the following explicit lifetimes could be elided: 'a
--> src/modules/api.rs:57:6
|
57 | impl<'a> Default for ApiQuery<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
57 - impl<'a> Default for ApiQuery<'a> {
57 + impl Default for ApiQuery<'_> {
|
|
Run clechasseur/rs-clippy-check@v3:
src/modules/api.rs#L84
error: the following explicit lifetimes could be elided: 'a
--> src/modules/api.rs:84:6
|
84 | impl<'a> Api for OpenMeteoLocationQuery<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
84 - impl<'a> Api for OpenMeteoLocationQuery<'a> {
84 + impl Api for OpenMeteoLocationQuery<'_> {
|
|
Run clechasseur/rs-clippy-check@v3:
src/modules/api.rs#L98
error: the following explicit lifetimes could be elided: 'a
--> src/modules/api.rs:98:6
|
98 | impl<'a> Api for OpenStreetMapLocationQuery<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
98 - impl<'a> Api for OpenStreetMapLocationQuery<'a> {
98 + impl Api for OpenStreetMapLocationQuery<'_> {
|
|
Run clechasseur/rs-clippy-check@v3
Clippy has exited with exit code 101
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading