Update proxy_dll #411
Annotations
5 errors and 1 warning
this `map_or` can be simplified:
src/providers/http.rs#L13
error: this `map_or` can be simplified
--> src/providers/http.rs:13:13
|
13 | / re_mod()
14 | | .captures(url)
15 | | .and_then(|c| c.name("hostname"))
16 | | .map_or(false, |h| {
17 | | !["mod.io", "drg.mod.io", "drg.old.mod.io"].contains(&h.as_str())
18 | | })
| |__________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
help: use is_some_and instead
|
13 ~ re_mod()
14 + .captures(url)
15 + .and_then(|c| c.name("hostname")).is_some_and(|h| {
16 + !["mod.io", "drg.mod.io", "drg.old.mod.io"].contains(&h.as_str())
17 + })
|
|
this `map_or` can be simplified:
src/gui/mod.rs#L906
error: this `map_or` can be simplified
--> src/gui/mod.rs:906:16
|
906 | if window.check_rid.as_ref().map_or(false, |r| rid == r.0) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_some_and instead: `window.check_rid.as_ref().is_some_and(|r| rid == r.0)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
= note: `-D clippy::unnecessary-map-or` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_map_or)]`
|
this `map_or` can be simplified:
src/providers/http.rs#L13
error: this `map_or` can be simplified
--> src/providers/http.rs:13:13
|
13 | / re_mod()
14 | | .captures(url)
15 | | .and_then(|c| c.name("hostname"))
16 | | .map_or(false, |h| {
17 | | !["mod.io", "drg.mod.io", "drg.old.mod.io"].contains(&h.as_str())
18 | | })
| |__________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
help: use is_some_and instead
|
13 ~ re_mod()
14 + .captures(url)
15 + .and_then(|c| c.name("hostname")).is_some_and(|h| {
16 + !["mod.io", "drg.mod.io", "drg.old.mod.io"].contains(&h.as_str())
17 + })
|
|
this `map_or` can be simplified:
src/gui/mod.rs#L906
error: this `map_or` can be simplified
--> src/gui/mod.rs:906:16
|
906 | if window.check_rid.as_ref().map_or(false, |r| rid == r.0) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_some_and instead: `window.check_rid.as_ref().is_some_and(|r| rid == r.0)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
= note: `-D clippy::unnecessary-map-or` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_map_or)]`
|
check
Clippy had exited with the 101 exit code
|
check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|