diff options
| author | Nathan Perry <np@nathanperry.dev> | 2024-08-16 05:18:39 -0400 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2024-08-16 05:18:39 -0400 |
| commit | 728d951b87ae9ba15ca1453d24ce9ce618badd5a (patch) | |
| tree | 55f77c3d9c3fe0f7d659161fa85c729981cee27b /src/bot.rs | |
| parent | 7d47be4c40ac8f9a9c33ae8c78e44d20c2c46ef6 (diff) | |
repo: apply rustfmt
Diffstat (limited to 'src/bot.rs')
| -rw-r--r-- | src/bot.rs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -258,11 +258,11 @@ fn on_err(err: FrameworkError<PoiseData, anyhow::Error>) -> 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<PoiseData, anyhow::Error>) -> 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<PoiseData, anyhow::Error>) -> BoxFuture<()> { return; } } - } + }, _ => "BANIC".to_string(), }; @@ -377,7 +377,7 @@ fn check(ctx: PoiseContext) -> BoxFuture<anyhow::Result<bool>> { }) } -fn before_handle<'fut>(ctx: PoiseContext<'fut>) -> Pin<Box<dyn Future<Output=()> + Send + 'fut>> { +fn before_handle<'fut>(ctx: PoiseContext<'fut>) -> Pin<Box<dyn Future<Output = ()> + Send + 'fut>> { debug!( "got command '{}' from user '{}' ({})", ctx.command().name, |
