deps: Update Rust Dependencies #503
dev clippy
5 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 5 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.86.0-nightly (a580b5c37 2025-01-08)
- cargo 1.86.0-nightly (fd784878c 2025-01-03)
- clippy 0.1.85 (a580b5c379 2025-01-08)
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
Check warning on line 410 in src/bot/genkai_point/mod.rs
github-actions / dev clippy
use of deprecated associated function `chrono::TimeDelta::max_value`: Use `TimeDelta::MAX` instead
warning: use of deprecated associated function `chrono::TimeDelta::max_value`: Use `TimeDelta::MAX` instead
--> src/bot/genkai_point/mod.rs:410:31
|
410 | Duration::max_value()
| ^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default