diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index c60e60a..b1b86c6 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -14,4 +14,4 @@ permissions: jobs: rust-ci: - uses: hyperpolymath/standards/.github/workflows/rust-ci-reusable.yml@d135b05bfc647d0c0fbfedc7e80f37ea50f49236 + uses: hyperpolymath/standards/.github/workflows/rust-ci-reusable.yml@8dc2bf039d1ff0372d650895c46bea7fbaec68ff diff --git a/src/codegen/ats_gen.rs b/src/codegen/ats_gen.rs index 428c840..c71cae8 100644 --- a/src/codegen/ats_gen.rs +++ b/src/codegen/ats_gen.rs @@ -389,9 +389,18 @@ mod tests { #[test] fn test_parse_pattern() { - assert_eq!(parse_pattern("alloc").expect("TODO: handle error"), OwnershipPattern::Alloc); - assert_eq!(parse_pattern("free").expect("TODO: handle error"), OwnershipPattern::Free); - assert_eq!(parse_pattern("borrow").expect("TODO: handle error"), OwnershipPattern::Borrow); + assert_eq!( + parse_pattern("alloc").expect("TODO: handle error"), + OwnershipPattern::Alloc + ); + assert_eq!( + parse_pattern("free").expect("TODO: handle error"), + OwnershipPattern::Free + ); + assert_eq!( + parse_pattern("borrow").expect("TODO: handle error"), + OwnershipPattern::Borrow + ); assert_eq!( parse_pattern("transfer").expect("TODO: handle error"), OwnershipPattern::Transfer diff --git a/src/codegen/compiler.rs b/src/codegen/compiler.rs index 2d1766b..a2f2bc8 100644 --- a/src/codegen/compiler.rs +++ b/src/codegen/compiler.rs @@ -271,7 +271,8 @@ mod tests { #[test] fn test_build_command_structure() { let manifest = test_manifest(); - let cmd = build_command(&manifest, "generated/ats/test_safe.dats", false).expect("TODO: handle error"); + let cmd = build_command(&manifest, "generated/ats/test_safe.dats", false) + .expect("TODO: handle error"); assert_eq!(cmd.program, "patscc"); assert!(cmd.args.contains(&"-DATS_MEMALLOC_LIBC".to_string()));