I guess no pre-commit formatting
parent
f2c95df625
commit
d2998bb252
|
@ -12,6 +12,4 @@ if [[ ${result} -ne 0 ]] ; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
cargo fmt --all
|
||||
|
||||
exit 0
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue