deps: Update Rust Dependencies #482
GitHub Actions / dev clippy
succeeded
Dec 7, 2024 in 0s
dev clippy
4 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 4 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.85.0-nightly (8dc83770f 2024-12-06)
- cargo 1.85.0-nightly (05f54fdc3 2024-12-03)
- clippy 0.1.85 (8dc83770f7 2024-12-06)
Annotations
Check warning on line 332 in src/db/mem.rs
github-actions / dev clippy
this `map_or` can be simplified
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
Check warning on line 331 in src/db/mem.rs
github-actions / dev clippy
this `map_or` can be simplified
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
Check warning on line 99 in src/bot/mod.rs
github-actions / dev clippy
methods `on_vc_data_available`, `on_vc_join`, and `on_vc_leave` are never used
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(
| ^^^^^^^^^^^
Check warning on line 41 in src/bot/mod.rs
github-actions / dev clippy
method `name` is never used
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
Loading