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