chore: toolchain と dependencies の更新 #310
Annotations
14 warnings
methods `should_notify` and `notify` are never used:
src/bot/vc_diff/mod.rs#L49
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<()> {
| ^^^^^^
|
static `TIMEOUT` is never used:
src/bot/vc_diff/mod.rs#L39
warning: static `TIMEOUT` is never used
--> src/bot/vc_diff/mod.rs:39:8
|
39 | static TIMEOUT: Lazy<Duration> = Lazy::new(|| Duration::seconds(1));
| ^^^^^^^
|
field `timeout` is never read:
src/bot/vc_diff/mod.rs#L36
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>>,
| ^^^^^^^
|
function `default_formula` is never used:
src/bot/genkai_point/formula/mod.rs#L17
warning: function `default_formula` is never used
--> src/bot/genkai_point/formula/mod.rs:17:15
|
17 | pub(crate) fn default_formula() -> impl GenkaiPointFormula {
| ^^^^^^^^^^^^^^^
|
static `RESUME_MSG_TIMEOUT` is never used:
src/bot/genkai_point/mod.rs#L180
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));
| ^^^^^^^^^^^^^^^^^^
|
field `resume_msg_timeout` is never read:
src/bot/genkai_point/mod.rs#L175
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>>,
| ^^^^^^^^^^^^^^^^^^
|
enum `CreateNewSessionResult` is never used:
src/bot/genkai_point/mod.rs#L167
warning: enum `CreateNewSessionResult` is never used
--> src/bot/genkai_point/mod.rs:167:17
|
167 | pub(crate) enum CreateNewSessionResult {
| ^^^^^^^^^^^^^^^^^^^^^^
|
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#L127
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>>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
methods `on_vc_data_available`, `on_vc_join`, and `on_vc_leave` are never used:
src/bot/mod.rs#L85
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<()> {
| ^^^^^^^^^^^
|
method `name` is never used:
src/bot/mod.rs#L33
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
|
field `name` is never read:
src/client/discord.rs#L384
warning: field `name` is never read
--> src/client/discord.rs:384:5
|
382 | struct DiscordAuthor<'a> {
| ------------- field in this struct
383 | id: u64,
384 | name: String,
| ^^^^
|
method `name` is never used:
src/bot/mod.rs#L33
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
|
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|