I guess no pre-commit formatting
parent
f2c95df625
commit
d2998bb252
|
@ -12,6 +12,4 @@ if [[ ${result} -ne 0 ]] ; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cargo fmt --all
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
|
@ -38,7 +38,7 @@ We make use of `rustfmt` to format our code. You can install it by running `rust
|
||||||
|
|
||||||
#### Git Hooks
|
#### 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
|
```bash
|
||||||
git config core.hooksPath .githooks
|
git config core.hooksPath .githooks
|
||||||
|
|
|
@ -198,7 +198,7 @@ pub fn component(ctx: Context, mut interaction: MessageComponentInteraction) ->
|
||||||
|
|
||||||
// Check if session still exists
|
// Check if session still exists
|
||||||
let mut session = match session_manager
|
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
|
.await
|
||||||
{
|
{
|
||||||
Some(session) => session,
|
Some(session) => session,
|
||||||
|
|
Loading…
Reference in New Issue