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
+2 -2
View File
@@ -232,7 +232,7 @@ pub struct RetargetMap {
}
impl RetargetMap {
const MOCAP_NET: [(&str, &str); 80] = [
const MOCAP_NET: [(&'static str, &'static str); 80] = [
// Spine
("LowerBack", "DEF-spine"),
("hip", "DEF-spine"),
@@ -333,7 +333,7 @@ impl RetargetMap {
("LHipJoint", "DEF-pelvis.L"),
];
const MIXAMO: [(&str, &str); 60] = [
const MIXAMO: [(&'static str, &'static str); 60] = [
// Spine
("mixamorig:Hips", "DEF-spine"),
("mixamorig:Spine", "DEF-spine.001"),