Skip to content

Commit

Permalink
refactor: update linting configuration (#88)
Browse files Browse the repository at this point in the history
Signed-off-by: Mogyuchi <[email protected]>
  • Loading branch information
Mogyuchi authored Feb 11, 2024
1 parent d71732e commit f1b5551
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ path = "main.rs"
[features]
default = ["dotenv"]
dotenv = ["dep:dotenvy"]

[lints.clippy]
pedantic = "warn"
4 changes: 2 additions & 2 deletions main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn get_env(key: &str) -> String {
async fn event_handler(
ctx: &serenity::Context,
event: &serenity::FullEvent,
_framework: poise::FrameworkContext<'_, (), Error>,
_: poise::FrameworkContext<'_, (), Error>,
) -> Result<(), Error> {
match event {
serenity::FullEvent::Ready { data_about_bot, .. } => {
Expand Down Expand Up @@ -73,7 +73,7 @@ async fn event_handler(
.to_channel(&ctx.http)
.await
.ok()
.and_then(|c| c.guild())
.and_then(poise::serenity_prelude::Channel::guild)
else {
return Ok(());
};
Expand Down

0 comments on commit f1b5551

Please sign in to comment.