deps: Update Rust Dependencies #487
prod clippy
7 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 7 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.85.0-nightly (d4025ee45 2024-12-12)
- cargo 1.85.0-nightly (20a443231 2024-12-06)
- clippy 0.1.85 (d4025ee454 2024-12-12)
Annotations
Check warning on line 180 in src/client/discord.rs
github-actions / prod clippy
the following explicit lifetimes could be elided: 'a
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> {
|
Check warning on line 150 in src/client/discord.rs
github-actions / prod clippy
the following explicit lifetimes could be elided: 'a
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<'_> {
|
Check warning on line 139 in src/client/discord.rs
github-actions / prod clippy
the following explicit lifetimes could be elided: 'a
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<'_> {
|
Check warning on line 128 in src/client/discord.rs
github-actions / prod clippy
the following explicit lifetimes could be elided: 'a
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<'_> {
|
Check warning on line 117 in src/client/discord.rs
github-actions / prod clippy
the following explicit lifetimes could be elided: 'a
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<'_> {
|
Check warning on line 41 in src/bot/mod.rs
github-actions / prod 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 / prod 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