Add formatting, linting, and testing to CI checks (#44)

This PR adds `cargo fmt -- --check`, `nx lint ...` and `nx test ...` as
GitHub Actions. This will cause future PRs to automatically fail when
formatting issues, Clippy warnings, or test failures are present in the
changed code.
This commit is contained in:
Danny McGee
2024-02-15 16:04:45 -05:00
committed by GitHub
parent c7f5e3e828
commit a1779fb1ec
8 changed files with 68 additions and 14 deletions
+1 -1
View File
@@ -548,7 +548,7 @@ impl Bvh {
let mut tokens = line.fields();
let frame_time_kw = tokens.next();
if frame_time_kw == FRAME_TIME_KEYWORDS.get(0).copied() {
if frame_time_kw == FRAME_TIME_KEYWORDS.first().copied() {
// do nothing
} else {
return Err(LoadMotionError::MissingFrameTime {