Merge pull request #65 from LeChatP/dev #259
Annotations
8 warnings
this `map_or` is redundant:
rar-common/src/database/options.rs#L501
warning: this `map_or` is redundant
--> rar-common/src/database/options.rs:501:9
|
501 | self.as_ref().map_or(false, |set| set.env_matches(needle))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_some_and instead: `self.as_ref().is_some_and(|set| set.env_matches(needle))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
|
this `map_or` is redundant:
rar-common/src/database/finder.rs#L547
warning: this `map_or` is redundant
--> rar-common/src/database/finder.rs:547:5
|
547 | (*actortype).fetch_id().map_or(false, |id| id == 0)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use a standard comparison instead: `((*actortype).fetch_id() == Some(0))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
|
this `map_or` is redundant:
rar-common/src/database/finder.rs#L543
warning: this `map_or` is redundant
--> rar-common/src/database/finder.rs:543:5
|
543 | (*actortype).fetch_id().map_or(false, |id| id == 0)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use a standard comparison instead: `((*actortype).fetch_id() == Some(0))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
= note: `#[warn(clippy::unnecessary_map_or)]` on by default
|
the following explicit lifetimes could be elided: 'de:
rar-common/src/database/actor.rs#L122
warning: the following explicit lifetimes could be elided: 'de
--> rar-common/src/database/actor.rs:122:14
|
122 | impl<'de> Visitor<'de> for IdVisitor {
| ^^^ ^^^
|
= 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
|
122 - impl<'de> Visitor<'de> for IdVisitor {
122 + impl Visitor<'_> for IdVisitor {
|
|
Rust Quality Gate
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rust Quality Gate
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rust Quality Gate
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rust Quality Gate
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|