Skip to content

Commit bff5dfc

Browse files
committed
fixup! Fix clippy warnings for hyperlight-guest
1 parent 78e609c commit bff5dfc

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

Justfile

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -176,33 +176,6 @@ clippy-apply-fix-unix:
176176
clippy-apply-fix-windows:
177177
cargo clippy --target x86_64-pc-windows-msvc --fix --all
178178

179-
# Generate and test all possible feature combinations for a package
180-
clippy-feature-combinations package target=default-target:
181-
#!/usr/bin/env bash
182-
set -euo pipefail
183-
184-
# Get all features for the package
185-
features=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.name == "{{package}}") | .features | keys[]' | grep -v default || true)
186-
187-
echo "Testing {{package}} with no features..."
188-
cargo clippy -p {{package}} --all-targets --no-default-features --profile={{ if target == "debug" { "dev" } else { target } }} -- -D warnings
189-
190-
echo "Testing {{package}} with default features..."
191-
cargo clippy -p {{package}} --all-targets --profile={{ if target == "debug" { "dev" } else { target } }} -- -D warnings
192-
193-
# Test each feature individually
194-
for feature in $features; do
195-
echo "Testing {{package}} with feature: $feature"
196-
cargo clippy -p {{package}} --all-targets --no-default-features --features "$feature" --profile={{ if target == "debug" { "dev" } else { target } }} -- -D warnings || echo "Feature $feature failed for {{package}}"
197-
done
198-
199-
# Test all features together
200-
if [ -n "$features" ]; then
201-
all_features=$(echo $features | tr '\n' ',' | sed 's/,$//')
202-
echo "Testing {{package}} with all features: $all_features"
203-
cargo clippy -p {{package}} --all-targets --no-default-features --features "$all_features" --profile={{ if target == "debug" { "dev" } else { target } }} -- -D warnings || echo "All features failed for {{package}}"
204-
fi
205-
206179
# Run clippy with feature combinations for all packages
207180
clippy-exhaustive target=default-target: (witguest-wit)
208181
./hack/clippy-package-features.sh hyperlight-host {{ target }}

0 commit comments

Comments
 (0)