feat: logging feature kill #96
Annotations
7 warnings
rustfmt_check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
[clippy] src/commands/moderation/duration.rs#L148:
src/commands/moderation/duration.rs#L148
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/commands/moderation/duration.rs:148:29
|
148 | get_log_channel(&handler, &config, &LogType::Action).await.map(|channel| ChannelId::new(channel as u64)
| ^^^^^^^^ help: change this to: `handler`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
[clippy] src/commands/moderation/expire.rs#L104:
src/commands/moderation/expire.rs#L104
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/commands/moderation/expire.rs:104:29
|
104 | get_log_channel(&handler, &config, &LogType::Action).await.map(|channel| ChannelId::new(channel as u64)
| ^^^^^^^^ help: change this to: `handler`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
[clippy] src/commands/moderation/reason.rs#L135:
src/commands/moderation/reason.rs#L135
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/commands/moderation/reason.rs:135:29
|
135 | get_log_channel(&handler, &config, &LogType::Action).await.map(|channel| ChannelId::new(channel as u64)
| ^^^^^^^^ help: change this to: `handler`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
[clippy] src/commands/moderation/remove.rs#L102:
src/commands/moderation/remove.rs#L102
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/commands/moderation/remove.rs:102:29
|
102 | get_log_channel(&handler, &config, &LogType::Action).await.map(|channel| ChannelId::new(channel as u64)
| ^^^^^^^^ help: change this to: `handler`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
[clippy] src/commands/moderation/unban.rs#L117:
src/commands/moderation/unban.rs#L117
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/commands/moderation/unban.rs:117:52
|
117 | if let Some(channel) = get_log_channel(&handler, &config, &LogType::Action).await {
| ^^^^^^^^ help: change this to: `handler`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
[clippy] src/commands/moderation/unmute.rs#L145:
src/commands/moderation/unmute.rs#L145
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/commands/moderation/unmute.rs:145:52
|
145 | if let Some(channel) = get_log_channel(&handler, &config, &LogType::Action).await {
| ^^^^^^^^ help: change this to: `handler`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|