rustfmt w/o project
This commit is contained in:
@@ -22,6 +22,9 @@ jobs:
|
||||
run: |
|
||||
if [ -f Cargo.toml ]; then
|
||||
cargo fmt --check
|
||||
elif [ -n "$(find . -name "*.rs" -print -quit)" ]; then
|
||||
echo "Rust files found but no Cargo.toml"
|
||||
exit 1
|
||||
else
|
||||
echo "No Rust project found"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user