CI #1833
ci.yaml
on: schedule
Build & Test Project
2m 36s
Annotations
2 warnings
Build & Test Project:
moss/src/client/install.rs#L115
[clippy] reported by reviewdog 🐶
warning: using `contains()` instead of `iter().any()` is more efficient
--> moss/src/client/install.rs:115:23
|
115 | explicit: input.iter().any(|id| *id == p.id),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `input.contains(&p.id)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_contains
= note: `#[warn(clippy::manual_contains)]` on by default
Raw Output:
moss/src/client/install.rs:115:23:w:warning: using `contains()` instead of `iter().any()` is more efficient
--> moss/src/client/install.rs:115:23
|
115 | explicit: input.iter().any(|id| *id == p.id),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `input.contains(&p.id)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/ma
2710
ster/index.html#manual_contains
= note: `#[warn(clippy::manual_contains)]` on by default
__END__
|
Build & Test Project:
crates/stone/src/write/zstd.rs#L140
[clippy] reported by reviewdog 🐶
warning: this can be `std::io::Error::other(_)`
--> crates/stone/src/write/zstd.rs:140:5
|
140 | io::Error::new(io::ErrorKind::Other, msg.to_owned())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
= note: `#[warn(clippy::io_other_error)]` on by default
help: use `std::io::Error::other`
|
140 - io::Error::new(io::ErrorKind::Other, msg.to_owned())
140 + io::Error::other(msg.to_owned())
|
Raw Output:
crates/stone/src/write/zstd.rs:140:5:w:warning: this can be `std::io::Error::other(_)`
--> crates/stone/src/write/zstd.rs:140:5
|
140 | io::Error::new(io::ErrorKind::Other, msg.to_owned())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
= note: `#[warn(clippy::io_other_error)]` on by default
help: use `std::io::Error::other`
|
140 - io::Error::new(io::ErrorKind::Other, msg.to_owned())
140 + io::Error::other(msg.to_owned())
|
__END__
|