fix clippy integration test
We also want to run clippy on regions
labeled with cfg(test).
@@ -79,7 +79,7 @@ def test_python_style():
def test_rust_clippy():
"""Fails if clippy generates any error, warnings are ignored."""
run(
- 'cargo clippy --all-targets --all-features -- -D warnings',
+ 'cargo clippy --all --profile test -- -D warnings',
shell=True,
check=True,
stdout=PIPE
