Skip to content

deps: Update Rust Dependencies #346

deps: Update Rust Dependencies

deps: Update Rust Dependencies #346

GitHub Actions / dev clippy succeeded Aug 12, 2024 in 0s

dev clippy

12 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 12
Note 0
Help 0

Versions

  • rustc 1.81.0-nightly (59e2c01c2 2024-06-17)
  • cargo 1.81.0-nightly (a1f47ec3f 2024-06-15)
  • clippy 0.1.81 (59e2c01 2024-06-17)

Annotations

Check warning on line 49 in src/bot/vc_diff/mod.rs

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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 85 in src/bot/mod.rs

See this annotation in the file changed.

@github-actions 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:85:14
   |
77 | pub(crate) trait BotService: Send + Sync {
   |                  ---------- methods in this trait
...
85 |     async fn on_vc_data_available(
   |              ^^^^^^^^^^^^^^^^^^^^
...
94 |     async fn on_vc_join(&self, _ctx: &dyn Context, _user_id: u64) -> Result<()> {
   |              ^^^^^^^^^^
...
99 |     async fn on_vc_leave(&self, _ctx: &dyn Context, _user_id: u64) -> Result<()> {
   |              ^^^^^^^^^^^

Check warning on line 33 in src/bot/mod.rs

See this annotation in the file changed.

@github-actions github-actions / dev clippy

method `name` is never used

warning: method `name` is never used
  --> src/bot/mod.rs:33:8
   |
31 | pub(crate) trait User: Send + Sync {
   |                  ---- method in this trait
32 |     fn id(&self) -> u64;
33 |     fn name(&self) -> &str;
   |        ^^^^
   |
   = note: `#[warn(dead_code)]` on by default

Check warning on line 269 in src/bot/alias/command.rs

See this annotation in the file changed.

@github-actions github-actions / dev clippy

use of deprecated type alias `image::io::Reader`: this type has been moved and renamed to image::ImageReader

warning: use of deprecated type alias `image::io::Reader`: this type has been moved and renamed to image::ImageReader
   --> src/bot/alias/command.rs:269:21
    |
269 |     let src_image = ImageReader::new(Cursor::new(data))
    |                     ^^^^^^^^^^^

Check warning on line 11 in src/bot/alias/command.rs

See this annotation in the file changed.

@github-actions github-actions / dev clippy

use of deprecated type alias `image::io::Reader`: this type has been moved and renamed to image::ImageReader

warning: use of deprecated type alias `image::io::Reader`: this type has been moved and renamed to image::ImageReader
  --> src/bot/alias/command.rs:11:16
   |
11 |     image::io::Reader as ImageReader,
   |                ^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default