Skip to content

Commit

Permalink
Update check.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
shawntabrizi committed Jun 25, 2024
1 parent d34a876 commit 3daa983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ for dir in steps/*/; do
echo "Checking cargo clippy"
if [[ "$dir_name" =~ ^([1-9]|1[0-9]|2[0-6])$ ]]; then
# We specifically allow `clippy::ptr-arg` in the first 26 steps, because
# it helps minimize transition to generic types
# it helps minimize the transition to generic types.
RUSTFLAGS="-A unused -A clippy::ptr-arg" cargo +nightly clippy -- -D warnings
else
RUSTFLAGS="-A unused" cargo +nightly clippy -- -D warnings
Expand All @@ -58,7 +58,7 @@ for dir in steps/*/; do
echo "Running cargo clippy"
if [[ "$dir_name" =~ ^([1-9]|1[0-9]|2[0-6])$ ]]; then
# We specifically allow `clippy::ptr-arg` in the first 26 steps, because
# it helps minimize transition to generic types
# it helps minimize the transition to generic types.
RUSTFLAGS="-A unused -A clippy::ptr-arg" cargo +nightly clippy --fix --allow-dirty
else
RUSTFLAGS="-A unused" cargo +nightly clippy --fix --allow-dirty
Expand Down

0 comments on commit 3daa983

Please sign in to comment.