diff options
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) }, } } |
