diff --git a/.gitea/workflows/lint-rust.yml b/.gitea/workflows/lint-rust.yml index 1f81769..cd64d27 100644 --- a/.gitea/workflows/lint-rust.yml +++ b/.gitea/workflows/lint-rust.yml @@ -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