Skip to content

V3.0.5: Add -u and -E options #253

V3.0.5: Add -u and -E options

V3.0.5: Add -u and -E options #253

Triggered via pull request February 18, 2025 09:36
@LeChatPLeChatP
synchronize #65
dev
Status Success
Total duration 3m 23s
Artifacts

tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 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 { |