From 728d951b87ae9ba15ca1453d24ce9ce618badd5a Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Fri, 16 Aug 2024 05:18:39 -0400 Subject: repo: apply rustfmt --- src/bot.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/bot.rs') diff --git a/src/bot.rs b/src/bot.rs index 0c44349..ec0bf92 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -258,11 +258,11 @@ fn on_err(err: FrameworkError) -> BoxFuture<()> { } else { return; } - } + }, Err(e) => { error!("processing unrecognized message: {e}"); "BANIC".to_string() - } + }, } } else { if let Err(e) = commands::meme::invoke::_meme( @@ -270,7 +270,7 @@ fn on_err(err: FrameworkError) -> BoxFuture<()> { msg_content, Default::default(), ) - .await + .await { error!("producing meme for unrecognized: {e}"); "BANIC".to_string() @@ -278,7 +278,7 @@ fn on_err(err: FrameworkError) -> BoxFuture<()> { return; } } - } + }, _ => "BANIC".to_string(), }; @@ -377,7 +377,7 @@ fn check(ctx: PoiseContext) -> BoxFuture> { }) } -fn before_handle<'fut>(ctx: PoiseContext<'fut>) -> Pin + Send + 'fut>> { +fn before_handle<'fut>(ctx: PoiseContext<'fut>) -> Pin + Send + 'fut>> { debug!( "got command '{}' from user '{}' ({})", ctx.command().name, -- cgit v1.3.1