deps: Update Rust Dependencies #394
dev clippy
9 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 9 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.81.0 (eeb90cda1 2024-09-04)
- cargo 1.81.0 (2dbb1af80 2024-08-20)
- clippy 0.1.81 (eeb90cd 2024-09-04)
Annotations
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 86 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:86:14
|
78 | pub(crate) trait BotService: Send + Sync {
| ---------- methods in this trait
...
86 | async fn on_vc_data_available(
| ^^^^^^^^^^^^^^^^^^^^
...
95 | async fn on_vc_join(&self, _ctx: &dyn Context, _user_id: u64) -> Result<()> {
| ^^^^^^^^^^
...
100 | async fn on_vc_leave(&self, _ctx: &dyn Context, _user_id: u64) -> Result<()> {
| ^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default