From bc7094394baeaa185c5bf56ae806e302c786bdd3 Mon Sep 17 00:00:00 2001 From: Tom French <15848336+TomAFrench@users.noreply.github.com> Date: Wed, 9 Oct 2024 14:37:14 +0100 Subject: [PATCH] chore: remove formatter from canary (#14) * chore: run formatter * chore: remove formatter from canary --- .github/workflows/nightly-canary.yml | 3 --- src/_string_tools/slice_packed_field.nr | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nightly-canary.yml b/.github/workflows/nightly-canary.yml index fb614ee..4fd5ce1 100644 --- a/.github/workflows/nightly-canary.yml +++ b/.github/workflows/nightly-canary.yml @@ -27,9 +27,6 @@ jobs: - name: Run Noir tests run: nargo test - - name: Run formatter - run: nargo fmt --check - - name: Alert on dead links uses: JasonEtco/create-an-issue@v2 if: ${{ failure() }} diff --git a/src/_string_tools/slice_packed_field.nr b/src/_string_tools/slice_packed_field.nr index a8d749e..2dbedd8 100644 --- a/src/_string_tools/slice_packed_field.nr +++ b/src/_string_tools/slice_packed_field.nr @@ -689,7 +689,7 @@ mod test { } #[test] -fn test_slice_fields_nolength() { + fn test_slice_fields_nolength() { let text: [u8; 1405] = "Charlie is genius, right. He's made from a million pieces of old bubble gum. Imagine that! In the summer of 1976, on his way home from an Alice Cooper concert, Charlie started to melt onto the pavement. It was too hot in L.A., and he melted like a pink bitch. Luckily though, there was Eric Phillips, a local crocodile who dabbled in black magic. He took pity on Charlie and scraped him off the floor with a pair of fish slicers. He poured him into an antique soup ladle, and boarded his magic carpet. Destination: Alaska! Eric Phillips decided to refreeze Charlie, but in his cold-blooded reptilian haste, he refroze him into to the shape of a Hoover. Charlie wasn't fazed though, he just zoomed about the place, sucking up Inuits. Ha ha! Oh. The Inuits didn't mind; they loved it in Charlie's pink, tight warm belly pouch, and they refused to come out. Charlie said, \"I'm cool with that,\" and set fire to a posh hammer to make it official. he downside was that the Inuits suffocated immediately. It was air-tight in there. Charlie panicked and fired the tiny Inuit bullets into Eric's crocodile peepers. The green shape was frozen. After a quick drink, Charlie stole Eric Phillips's magic carpet and left for Seattle. Charlie was racked with guilt: he'd killed 50 Inuits, noone needs that. He decided to spend the rest of his life putting small hairstyles onto boots, monkey nuts, trumpets and spanners.".as_bytes(); println(f"text = {text}"); let mut slices: [Field; 46 + 3] = [0; 46 + 3]; @@ -712,7 +712,7 @@ fn test_slice_fields_nolength() { } #[test] -fn test_slice_fields() { + fn test_slice_fields() { let text: [u8; 1405] = "Charlie is genius, right. He's made from a million pieces of old bubble gum. Imagine that! In the summer of 1976, on his way home from an Alice Cooper concert, Charlie started to melt onto the pavement. It was too hot in L.A., and he melted like a pink bitch. Luckily though, there was Eric Phillips, a local crocodile who dabbled in black magic. He took pity on Charlie and scraped him off the floor with a pair of fish slicers. He poured him into an antique soup ladle, and boarded his magic carpet. Destination: Alaska! Eric Phillips decided to refreeze Charlie, but in his cold-blooded reptilian haste, he refroze him into to the shape of a Hoover. Charlie wasn't fazed though, he just zoomed about the place, sucking up Inuits. Ha ha! Oh. The Inuits didn't mind; they loved it in Charlie's pink, tight warm belly pouch, and they refused to come out. Charlie said, \"I'm cool with that,\" and set fire to a posh hammer to make it official. he downside was that the Inuits suffocated immediately. It was air-tight in there. Charlie panicked and fired the tiny Inuit bullets into Eric's crocodile peepers. The green shape was frozen. After a quick drink, Charlie stole Eric Phillips's magic carpet and left for Seattle. Charlie was racked with guilt: he'd killed 50 Inuits, noone needs that. He decided to spend the rest of his life putting small hairstyles onto boots, monkey nuts, trumpets and spanners.".as_bytes(); println(f"text = {text}"); let mut slices: [Field; 46 + 3] = [0; 46 + 3]; @@ -780,7 +780,7 @@ fn test_slice_fields() { } #[test] -fn test_slice_field() { + fn test_slice_field() { let input = 0xffeebbccbbaa99887766554433221100112233445566778899aabbccddeeff; let input_bytes: [u8; 32] = input.to_be_bytes();