fix rust auto linting
This commit is contained in:
parent
2f35776696
commit
03d281aaee
10
.github/workflows/lint.yml
vendored
10
.github/workflows/lint.yml
vendored
@ -57,5 +57,11 @@ jobs:
|
|||||||
# Lint Rust files
|
# Lint Rust files
|
||||||
- name: Lint Rust
|
- name: Lint Rust
|
||||||
run: |
|
run: |
|
||||||
cd Day*/rust
|
for dir in Day*/rust; do
|
||||||
cargo clippy -- -D warnings
|
if [ -d "$dir" ]; then
|
||||||
|
echo "Linting $dir"
|
||||||
|
cd $dir
|
||||||
|
cargo clippy -- -D warnings
|
||||||
|
cd - # Go back to the root directory
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user