Skip to content

Commit

Permalink
Make sure pre-commit runs on the stable branch of rust
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Roest committed Jun 11, 2019
1 parent e61e09c commit 4c3aae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fi

# Check rustfmt against the git tree
printf "${PREFIX} Checking formatting ... "
command cargo fmt -- --check > /dev/null
command cargo +stable fmt -- --check > /dev/null
if [[ $? == 0 ]]; then
printf "${SUCCESS}\n"
exit 0
Expand Down

0 comments on commit 4c3aae4

Please sign in to comment.