Bump jsonwebtoken from 10.1.0 to 10.2.0 (#3) #10
Annotations
4 errors
|
Task cargo clippy:
src/registry.rs#L569
[clippy] reported by reviewdog 🐶
error: this `if` statement can be collapsed
--> src/registry.rs:569:3
|
569 | / if let Some(persistence) = &self.config.persistence {
570 | | if let Some(snapshot) = persistence.load(&key.tenant_id, &key.provider_id).await? {
571 | | handle.manager.restore_snapshot(snapshot).await?;
572 | | }
573 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#collapsible_if
= note: `#[deny(clippy::collapsible_if)]` implied by `#[deny(clippy::all)]`
help: collapse nested if block
|
569 ~ if let Some(persistence) = &self.config.persistence
570 ~ && let Some(snapshot) = persistence.load(&key.tenant_id, &key.provider_id).await? {
571 | handle.manager.restore_snapshot(snapshot).await?;
572 ~ }
|
Raw Output:
src/registry.rs:569:3:e:error: this `if` statement can be collapsed
--> src/registry.rs:569:3
|
569 | / if let Some(persistence) = &self.config.persistence {
570 | | if let Some(snapshot) = persistence.load(&key.tenant_id, &key.provider_id).await? {
571 | | handle.manager.restore_snapshot(snapshot).await?;
572 | | }
573 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#collapsible_if
= note: `#[deny(clippy::collapsible_if)]` implied by `#[deny(clippy::all)]`
help: collapse nested if block
|
569 ~ if let Some(persistence) = &self.config.persistence
570 ~ && let Some(snapshot) = persistence.load(&key.tenant_id, &key.provider_id).await? {
571 | handle.manager.restore_snapshot(snapshot).await?;
572 ~ }
|
__END__
|
|
Task cargo clippy:
src/registry.rs#L569
[clippy] reported by reviewdog 🐶
error: this `if` statement can be collapsed
--> src/registry.rs:569:3
|
569 | / if let Some(persistence) = &self.config.persistence {
570 | | if let Some(snapshot) = persistence.load(&key.tenant_id, &key.provider_id).await? {
571 | | handle.manager.restore_snapshot(snapshot).await?;
572 | | }
573 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#collapsible_if
note: the lint level is defined here
--> src/lib.rs:4:9
|
4 | #![deny(clippy::all, missing_docs, unused_crate_dependencies)]
| ^^^^^^^^^^^
= note: `#[deny(clippy::collapsible_if)]` implied by `#[deny(clippy::all)]`
help: collapse nested if block
|
569 ~ if let Some(persistence) = &self.config.persistence
570 ~ && let Some(snapshot) = persistence.load(&key.tenant_id, &key.provider_id).await? {
571 | handle.manager.restore_snapshot(snapshot).await?;
572 ~ }
|
Raw Output:
src/registry.rs:569:3:e:error: this `if` statement can be collapsed
--> src/registry.rs:569:3
|
569 | / if let Some(persistence) = &self.config.persistence {
570 | | if let Some(snapshot) = persistence.load(&key.tenant_id, &key.provider_id).await? {
571 | | handle.manager.restore_snapshot(snapshot).await?;
572 | | }
573 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#collapsible_if
note: the lint level is defined here
--> src/lib.rs:4:9
|
4 | #![deny(clippy::all, missing_docs, unused_crate_dependencies)]
| ^^^^^^^^^^^
= note: `#[deny(clippy::collapsible_if)]` implied by `#[deny(clippy::all)]`
help: collapse nested if block
|
569 ~ if let Some(persistence) = &self.config.persistence
570 ~ && let Some(snapshot) = persistence.load(&key.tenant_id, &key.provider_id).await? {
571 | handle.manager.restore_snapshot(snapshot).await?;
572 ~ }
|
__END__
|
|
Task cargo clippy:
src/metrics.rs#L276
[clippy] reported by reviewdog 🐶
error: explicit call to `.into_iter()` in function argument accepting `IntoIterator`
--> src/metrics.rs:276:10
|
276 | .zip(expected_sorted.into_iter())
| ^^^^^^^^^^^^^^^------------
| |
| help: consider removing the `.into_iter()`
|
note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()`
--> /home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/iter/traits/iterator.rs:615:12
|
615 | U: IntoIterator,
| ^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#useless_conversion
= note: `#[deny(clippy::useless_conversion)]` implied by `#[deny(clippy::all)]`
Raw Output:
src/metrics.rs:276:10:e:error: explicit call to `.into_iter()` in function argument accepting `IntoIterator`
--> src/metrics.rs:276:10
|
276 | .zip(expected_sorted.into_iter())
| ^^^^^^^^^^^^^^^------------
| |
| help: consider removing the `.into_iter()`
|
note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()`
--> /home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/iter/traits/iterator.rs:615:12
|
615 | U: IntoIterator,
| ^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#useless_conversion
= note: `#[deny(clippy::useless_conversion)]` implied by `#[deny(clippy::all)]`
__END__
|
|
Task cargo clippy:
src/metrics.rs#L231
[clippy] reported by reviewdog 🐶
error: unnecessary closure used with `bool::then`
--> src/metrics.rs:231:5
|
231 | / (key.kind() == MetricKind::Counter
232 | | && Borrow::<str>::borrow(key.key().name()) == name
233 | | && labels_match(key, labels))
234 | | .then(|| match value {
235 | | DebugValue::Counter(value) => *value,
236 | | _ => 0,
237 | | })
| |__________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#unnecessary_lazy_evaluations
note: the lint level is defined here
--> src/lib.rs:4:9
|
4 | #![deny(clippy::all, missing_docs, unused_crate_dependencies)]
| ^^^^^^^^^^^
= note: `#[deny(clippy::unnecessary_lazy_evaluations)]` implied by `#[deny(clippy::all)]`
help: use `then_some` instead
|
234 ~ .then_some(match value {
235 ~ DebugValue::Counter(value) => *value,
236 ~ _ => 0,
237 ~ })
|
Raw Output:
src/metrics.rs:231:5:e:error: unnecessary closure used with `bool::then`
--> src/metrics.rs:231:5
|
231 | / (key.kind() == MetricKind::Counter
232 | | && Borrow::<str>::borrow(key.key().name()) == name
233 | | && labels_match(key, labels))
234 | | .then(|| match value {
235 | | DebugValue::Counter(value) => *value,
236 | | _ => 0,
237 | | })
| |__________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#unnecessary_lazy_evaluations
note: the lint level is defined here
--> src/lib.rs:4:9
|
4 | #![deny(clippy::all, missing_docs, unused_crate_dependencies)]
| ^^^^^^^^^^^
= note: `#[deny(clippy::unnecessary_lazy_evaluations)]` implied by `#[deny(clippy::all)]`
help: use `then_some` instead
|
234 ~ .then_some(match value {
235 ~ DebugValue::Counter(value) => *value,
236 ~ _ => 0,
237 ~ })
|
__END__
|