deps: Lock file maintenance #453
dev clippy
11 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 11 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.83.0 (90b35a623 2024-11-26)
- cargo 1.83.0 (5ffbef321 2024-10-29)
- clippy 0.1.83 (90b35a6 2024-11-26)
Annotations
Check warning on line 182 in src/client/console.rs
github-actions / dev clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/client/console.rs:182:6
|
182 | impl<'a> Attachment for ConsoleAttachment<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
182 - impl<'a> Attachment for ConsoleAttachment<'a> {
182 + impl Attachment for ConsoleAttachment<'_> {
|
Check warning on line 148 in src/client/console.rs
github-actions / dev clippy
the following explicit lifetimes could be elided: 'a
warning: the following explicit lifetimes could be elided: 'a
--> src/client/console.rs:148:6
|
148 | impl<'a> User for ConsoleUser<'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
|
148 - impl<'a> User for ConsoleUser<'a> {
148 + impl User for ConsoleUser<'_> {
|
Check warning on line 49 in src/bot/vc_diff/mod.rs
github-actions / dev clippy
methods `should_notify` and `notify` are never used
warning: methods `should_notify` and `notify` are never used
--> src/bot/vc_diff/mod.rs:49:14
|
41 | impl VcDiffBot {
| -------------- methods in this implementation
...
49 | async fn should_notify(&self) -> bool {
| ^^^^^^^^^^^^^
...
65 | async fn notify(&self, ctx: &dyn Context, user_id: u64, joined: bool) -> Result<()> {
| ^^^^^^
Check warning on line 39 in src/bot/vc_diff/mod.rs
github-actions / dev clippy
static `TIMEOUT` is never used
warning: static `TIMEOUT` is never used
--> src/bot/vc_diff/mod.rs:39:8
|
39 | static TIMEOUT: Lazy<Duration> = Lazy::new(|| Duration::seconds(1));
| ^^^^^^^
Check warning on line 36 in src/bot/vc_diff/mod.rs
github-actions / dev clippy
field `timeout` is never read
warning: field `timeout` is never read
--> src/bot/vc_diff/mod.rs:36:5
|
34 | pub(crate) struct VcDiffBot {
| --------- field in this struct
35 | enabled: Mutex<bool>,
36 | timeout: Mutex<DateTime<Utc>>,
| ^^^^^^^
Check warning on line 17 in src/bot/genkai_point/formula/mod.rs
github-actions / dev clippy
function `default_formula` is never used
warning: function `default_formula` is never used
--> src/bot/genkai_point/formula/mod.rs:17:15
|
17 | pub(crate) fn default_formula() -> impl GenkaiPointFormula {
| ^^^^^^^^^^^^^^^
Check warning on line 180 in src/bot/genkai_point/mod.rs
github-actions / dev clippy
static `RESUME_MSG_TIMEOUT` is never used
warning: static `RESUME_MSG_TIMEOUT` is never used
--> src/bot/genkai_point/mod.rs:180:8
|
180 | static RESUME_MSG_TIMEOUT: Lazy<Duration> = Lazy::new(|| Duration::seconds(10));
| ^^^^^^^^^^^^^^^^^^
Check warning on line 175 in src/bot/genkai_point/mod.rs
github-actions / dev clippy
field `resume_msg_timeout` is never read
warning: field `resume_msg_timeout` is never read
--> src/bot/genkai_point/mod.rs:175:5
|
173 | pub(crate) struct GenkaiPointBot<D, P> {
| -------------- field in this struct
174 | db: D,
175 | resume_msg_timeout: Mutex<DateTime<Utc>>,
| ^^^^^^^^^^^^^^^^^^
Check warning on line 167 in src/bot/genkai_point/mod.rs
github-actions / dev clippy
enum `CreateNewSessionResult` is never used
warning: enum `CreateNewSessionResult` is never used
--> src/bot/genkai_point/mod.rs:167:17
|
167 | pub(crate) enum CreateNewSessionResult {
| ^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 127 in src/bot/genkai_point/mod.rs
github-actions / dev clippy
methods `create_new_session`, `unclosed_session_exists`, `close_session`, and `get_all_users_who_has_unclosed_session` are never used
warning: methods `create_new_session`, `unclosed_session_exists`, `close_session`, and `get_all_users_who_has_unclosed_session` are never used
--> src/bot/genkai_point/mod.rs:127:14
|
123 | pub(crate) trait GenkaiPointDatabase: Send + Sync {
| ------------------- methods in this trait
...
127 | async fn create_new_session(
| ^^^^^^^^^^^^^^^^^^
...
132 | async fn unclosed_session_exists(&self, user_id: u64) -> Result<bool>;
| ^^^^^^^^^^^^^^^^^^^^^^^
133 | async fn close_session(&self, user_id: u64, left_at: DateTime<Utc>) -> Result<()>;
| ^^^^^^^^^^^^^
134 | async fn get_users_all_sessions(&self, user_id: u64) -> Result<Vec<Session>>;
135 | async fn get_all_users_who_has_unclosed_session(&self) -> Result<Vec<u64>>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check warning on line 91 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:91:14
|
83 | pub(crate) trait BotService: Send + Sync {
| ---------- methods in this trait
...
91 | async fn on_vc_data_available(
| ^^^^^^^^^^^^^^^^^^^^
...
100 | async fn on_vc_join(&self, _ctx: &dyn Context, _user_id: u64) -> Result<()> {
| ^^^^^^^^^^
...
105 | async fn on_vc_leave(&self, _ctx: &dyn Context, _user_id: u64) -> Result<()> {
| ^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default