diff options
| author | Nathan Perry <np@npry.dev> | 2025-12-17 19:19:59 -0500 |
|---|---|---|
| committer | Nathan Perry <np@npry.dev> | 2025-12-17 20:36:40 -0500 |
| commit | 13fcc8a263970e48999e7f9319876a6443a54ac5 (patch) | |
| tree | e354247547aaabc12da3de21478f6680a4d8f991 /src/commands/meme/invoke.rs | |
| parent | d9af3725c5b4b8df91671fd425b734ee30924d8e (diff) | |
clippy fixes
Diffstat (limited to 'src/commands/meme/invoke.rs')
| -rw-r--r-- | src/commands/meme/invoke.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/commands/meme/invoke.rs b/src/commands/meme/invoke.rs index d7c6b3f..f057db5 100644 --- a/src/commands/meme/invoke.rs +++ b/src/commands/meme/invoke.rs @@ -1,20 +1,20 @@ use diesel::{ - result::Error as DieselError, NotFound, + result::Error as DieselError, }; use grate::tracing; use crate::{ + PoiseContext, + RestVec, commands::meme::send_meme, db::{ self, + InvocationRecord, connection, find_meme, - InvocationRecord, }, util, - PoiseContext, - RestVec, }; /// Post a meme. @@ -104,7 +104,7 @@ pub(crate) async fn _meme( Ok(()) } else { util::reply(ctx, "what in ryan's name").await?; - Err(e.into()) + Err(e) }; }, }; @@ -152,7 +152,7 @@ async fn rand_meme(ctx: PoiseContext<'_>, audio_playback: AudioPlayback) -> anyh } util::reply(ctx, "HELP").await?; - Err(e.into()) + Err(e) }, } } @@ -197,7 +197,7 @@ pub async fn rare_meme(ctx: PoiseContext<'_>) -> anyhow::Result<()> { util::reply(ctx, "THE MEME MARKET IS IN FREEFALL").await?; - Err(e.into()) + Err(e) }, } } |
