Skip to content

Commit

Permalink
static_tests/rust: Address more shellcheck lints
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Oct 3, 2024
1 parent a7679ae commit 234f176
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/tools/cargo-checks/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ set -eu

FAILURES=""

find . -name Cargo.toml -print0 | while IFS= read -r -d '' CARGOTOML
while IFS= read -r -d '' CARGOTOML
do
if cargo fmt --quiet --check --manifest-path "${CARGOTOML}"; then
continue
else
FAILURES="${FAILURES} ${CARGOTOML%Cargo.toml}"
fi
done
done < <(find . -name Cargo.toml -print0)

if [ x"" != x"${FAILURES}" ]; then
echo "Some Rust files are following rustfmt, in particular in:"
Expand Down

0 comments on commit 234f176

Please sign in to comment.