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