From 1bbc1e7628eeab1c3d2637f44069e15c3266caee Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 22 Jul 2022 11:37:43 +1000 Subject: [PATCH] Explicitly set RUSTDOCFLAGS shellcheck emits these two warnings: SC2097: This assignment is only seen by the forked process. SC2098: This expansion will not see the mentioned assignment. Set `RUSTDOCFLAGS` explicitly to `--cfg=fuzzing` instead of trying to use the `RUSTFLAGS` variable. --- contrib/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/test.sh b/contrib/test.sh index e254084..fca682d 100755 --- a/contrib/test.sh +++ b/contrib/test.sh @@ -46,8 +46,8 @@ if [ "$DO_FEATURE_MATRIX" = true ]; then cargo test --all --no-default-features --features="std,$feature" done # Other combos - RUSTFLAGS='--cfg=fuzzing' RUSTDOCFLAGS=$RUSTFLAGS cargo test --all - RUSTFLAGS='--cfg=fuzzing' RUSTDOCFLAGS=$RUSTFLAGS cargo test --all --features="$FEATURES" + RUSTFLAGS='--cfg=fuzzing' RUSTDOCFLAGS='--cfg=fuzzing' cargo test --all + RUSTFLAGS='--cfg=fuzzing' RUSTDOCFLAGS='--cfg=fuzzing' cargo test --all --features="$FEATURES" cargo test --all --features="rand serde" cargo test --features="$STD_FEATURES"