chore: fix ci #477
Annotations
12 warnings
this `map_or` can be simplified:
src/db/mem.rs#L332
warning: this `map_or` can be simplified
--> src/db/mem.rs:332:24
|
332 | && options.content.map_or(true, |c| x.content.contains(c))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_none_or instead: `options.content.is_none_or(|c| x.content.contains(c))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
|
this `map_or` can be simplified:
src/db/mem.rs#L331
warning: this `map_or` can be simplified
--> src/db/mem.rs:331:17
|
331 | options.author.map_or(true, |a| x.author.contains(a))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_none_or instead: `options.author.is_none_or(|a| x.author.contains(a))`
|
= 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
|
methods `on_vc_data_available`, `on_vc_join`, and `on_vc_leave` are never used:
src/bot/mod.rs#L99
warning: methods `on_vc_data_available`, `on_vc_join`, and `on_vc_leave` are never used
--> src/bot/mod.rs:99:8
|
87 | pub trait BotService<R: Runtime>: Send + Sync {
| ---------- methods in this trait
...
99 | fn on_vc_data_available(
| ^^^^^^^^^^^^^^^^^^^^
...
108 | fn on_vc_join(
| ^^^^^^^^^^
...
117 | fn on_vc_leave(
| ^^^^^^^^^^^
|
method `name` is never used:
src/bot/mod.rs#L41
warning: method `name` is never used
--> src/bot/mod.rs:41:8
|
39 | pub trait User: Send + Sync {
| ---- method in this trait
40 | fn id(&self) -> u64;
41 | fn name(&self) -> &str;
| ^^^^
|
= note: `#[warn(dead_code)]` on by default
|
the following explicit lifetimes could be elided: 'a:
src/client/discord.rs#L180
warning: the following explicit lifetimes could be elided: 'a
--> src/client/discord.rs:180:14
|
180 | impl<'a, F: visitors::ForEachService> ServiceVisitor for Visitor<'a, F> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
180 - impl<'a, F: visitors::ForEachService> ServiceVisitor for Visitor<'a, F> {
180 + impl<F: visitors::ForEachService> ServiceVisitor for Visitor<'_, F> {
|
|
the following explicit lifetimes could be elided: 'a:
src/client/discord.rs#L150
warning: the following explicit lifetimes could be elided: 'a
--> src/client/discord.rs:150:10
|
150 | impl<'a> ForEachService for VcLeaveVisitor<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
150 - impl<'a> ForEachService for VcLeaveVisitor<'a> {
150 + impl ForEachService for VcLeaveVisitor<'_> {
|
|
the following explicit lifetimes could be elided: 'a:
src/client/discord.rs#L139
warning: the following explicit lifetimes could be elided: 'a
--> src/client/discord.rs:139:10
|
139 | impl<'a> ForEachService for VcJoinVisitor<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
139 - impl<'a> ForEachService for VcJoinVisitor<'a> {
139 + impl ForEachService for VcJoinVisitor<'_> {
|
|
the following explicit lifetimes could be elided: 'a:
src/client/discord.rs#L128
warning: the following explicit lifetimes could be elided: 'a
--> src/client/discord.rs:128:10
|
128 | impl<'a> ForEachService for VcDataAvailableVisitor<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
128 - impl<'a> ForEachService for VcDataAvailableVisitor<'a> {
128 + impl ForEachService for VcDataAvailableVisitor<'_> {
|
|
the following explicit lifetimes could be elided: 'a:
src/client/discord.rs#L117
warning: the following explicit lifetimes could be elided: 'a
--> src/client/discord.rs:117:10
|
117 | impl<'a> ForEachService for MessageVisitor<'a> {
| ^^ ^^
|
= 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
|
117 - impl<'a> ForEachService for MessageVisitor<'a> {
117 + impl ForEachService for MessageVisitor<'_> {
|
|
method `name` is never used:
src/bot/mod.rs#L41
warning: method `name` is never used
--> src/bot/mod.rs:41:8
|
39 | pub trait User: Send + Sync {
| ---- method in this trait
40 | fn id(&self) -> u64;
41 | fn name(&self) -> &str;
| ^^^^
|
= note: `#[warn(dead_code)]` on by default
|
build (dev)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build (prod)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|