Skip to content

Commit

Permalink
Merge pull request #139 from stepchowfun/formatting-lint-check
Browse files Browse the repository at this point in the history
Fix the formatting lint check and update the toastfile
  • Loading branch information
stepchowfun authored Mar 9, 2021
2 parents b790df0 + c4b8e67 commit 8a46ef8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions toast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ tasks:
input_paths:
- .ignore # Used by `tagref`
- install.sh # Linted by ShellCheck
- release.sh # Linted by ShellCheck
- release.sh # Linted by ShellCheck
user: user
command: |
set -euo pipefail
Expand All @@ -106,7 +106,10 @@ tasks:
--deny warnings --deny clippy::all --deny clippy::pedantic
# Check code formatting.
cargo fmt --all -- --check || echo 'ERROR: Please correct the formatting errors above.' 1>&2
if ! cargo fmt --all -- --check; then
echo 'ERROR: Please correct the formatting errors above.' 1>&2
exit 1
fi
# Check references.
tagref
Expand All @@ -132,7 +135,6 @@ tasks:
exit 1
fi
run:
description: Run the program.
dependencies:
Expand All @@ -154,7 +156,7 @@ tasks:
set -euo pipefail
. $HOME/.cargo/env
find src -type f -name '*.rs' -exec touch {} +
cargo check
cargo check --all --all-targets --all-features
format:
description: Format the source code.
Expand Down

0 comments on commit 8a46ef8

Please sign in to comment.