From d2998bb2521acf30ff4d74d0f7cdb15bfe5e74d5 Mon Sep 17 00:00:00 2001 From: DaXcess Date: Tue, 21 Feb 2023 14:51:40 +0100 Subject: [PATCH] I guess no pre-commit formatting --- .githooks/pre-commit | 2 -- CONTRIBUTING.md | 2 +- src/bot/commands/music/playing.rs | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 9be2050..c5d7fb1 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -12,6 +12,4 @@ if [[ ${result} -ne 0 ]] ; then exit 1 fi -cargo fmt --all - exit 0 \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e8b6e50..1349a10 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -38,7 +38,7 @@ We make use of `rustfmt` to format our code. You can install it by running `rust #### Git Hooks -We make use of the pre-commit git hook to run `rustfmt` and `clippy` before you commit your code. To set up the git hooks you can run the following command: +We make use of the pre-commit git hook to run `clippy` before you commit your code. To set up the git hooks you can run the following command: ```bash git config core.hooksPath .githooks diff --git a/src/bot/commands/music/playing.rs b/src/bot/commands/music/playing.rs index 16c26bc..27d6d26 100644 --- a/src/bot/commands/music/playing.rs +++ b/src/bot/commands/music/playing.rs @@ -198,7 +198,7 @@ pub fn component(ctx: Context, mut interaction: MessageComponentInteraction) -> // Check if session still exists let mut session = match session_manager - .get_session(interaction.guild_id.expect("to contain a value")) + .get_session(interaction.guild_id.expect("to contain a value")) .await { Some(session) => session,