build #434
Annotations
22 warnings
the following explicit lifetimes could be elided: 'a:
src/client/console.rs#L182
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<'_> {
|
|
the following explicit lifetimes could be elided: 'a:
src/client/console.rs#L148
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<'_> {
|
|
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 {
| ^^^^^^^^^^^^^^^
|
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 `on_vc_data_available`, `on_vc_join`, and `on_vc_leave` are never used:
src/bot/mod.rs#L91
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
|
the following explicit lifetimes could be elided: 'a:
src/client/discord.rs#L401
warning: the following explicit lifetimes could be elided: 'a
--> src/client/discord.rs:401:6
|
401 | impl<'a> User for DiscordAuthor<'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
|
401 - impl<'a> User for DiscordAuthor<'a> {
401 + impl User for DiscordAuthor<'_> {
|
|
the following explicit lifetimes could be elided: 'a:
src/client/console.rs#L182
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<'_> {
|
|
the following explicit lifetimes could be elided: 'a:
src/client/console.rs#L148
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<'_> {
|
|
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#L91
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
|
the following explicit lifetimes could be elided: 'a:
src/client/discord.rs#L401
warning: the following explicit lifetimes could be elided: 'a
--> src/client/discord.rs:401:6
|
401 | impl<'a> User for DiscordAuthor<'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
|
401 - impl<'a> User for DiscordAuthor<'a> {
401 + impl User for DiscordAuthor<'_> {
|
|