Skip to content

Commit ea988ad

Browse files
committed
test-exercise: Target only --tests, not --all-targets
all-targets include benches, which are only possible on nightly, on which we don't run Clippy.
1 parent c658909 commit ea988ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/test-exercise

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ done
8787
# For now, not the example solutions since they have many Clippy warnings,
8888
# and are not shown to students anyway.
8989
sed -i -e '1i #![deny(clippy::all)]' tests/*.rs
90-
cargo clippy --all-targets --color always "$@" 2>clippy.log
90+
cargo clippy --tests --color always "$@" 2>clippy.log
9191
if [ $? -ne 0 ]; then
9292
cat clippy.log
9393
exit 1

0 commit comments

Comments
 (0)