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/create.rs | |
| parent | d9af3725c5b4b8df91671fd425b734ee30924d8e (diff) | |
clippy fixes
Diffstat (limited to 'src/commands/meme/create.rs')
| -rw-r--r-- | src/commands/meme/create.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/commands/meme/create.rs b/src/commands/meme/create.rs index 2d0ee9a..80fbe44 100644 --- a/src/commands/meme/create.rs +++ b/src/commands/meme/create.rs @@ -12,16 +12,16 @@ use tokio::{ use url::Url; use crate::{ + FFMPEG_COMMAND, + PoiseContext, db::{ - connection, Audio, Image, NewMeme, + connection, }, parse_times, util, - PoiseContext, - FFMPEG_COMMAND, }; /// Add a text/image meme to the db. @@ -79,7 +79,7 @@ pub async fn addmeme( return Ok(()); } - return Err(e.into()); + return Err(e); }, } @@ -100,7 +100,7 @@ pub async fn addaudiomeme( if elems.is_empty() { util::reply(ctx, "are you stupid").await?; - return Err(anyhow!("no audio link was provided").into()); + return Err(anyhow!("no audio link was provided")); } let audio_link = Url::parse(elems[0])?; @@ -206,7 +206,7 @@ pub async fn addaudiomeme( return Ok(()); } - return Err(e.into()); + return Err(e); }, } |
