From e15265ec23be8686d89a20b60861c7f588ea5a47 Mon Sep 17 00:00:00 2001 From: oleh Date: Wed, 23 Oct 2024 04:56:09 +0200 Subject: [PATCH] fix: code broken by formatter --- README.md | 2 +- src/array.nr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 380f081..b9e67a7 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Put this into your Nargo.toml. If you are using Noir: ```toml -nodash = { git = "https://github.com/olehmisar/nodash/", tag = "v0.35.5" } +nodash = { git = "https://github.com/olehmisar/nodash/", tag = "v0.35.6" } ``` The version of nodash matches the version of Noir. The patch version may be different if a bugfix or a new feature is added for the same version of Noir. E.g., nodash@v0.35.0 and nodash@v0.35.1 are compatible with noir@v0.35.0. diff --git a/src/array.nr b/src/array.nr index 5550145..8a4e441 100644 --- a/src/array.nr +++ b/src/array.nr @@ -41,7 +41,7 @@ impl crate::ArrayExtensions for [T; N] { // TODO: write tests pub fn pack_bytes(bytes: [u8; N]) -> [Field; N / 31 + 1] { - let bytes_padded = bytes.pad_end::<(N / 31 + 1) * 31>(N / 31 + 1) * 31>( 0); + let bytes_padded = bytes.pad_end::<(N / 31 + 1) * 31>(0); let mut res = [0 as Field; N / 31 + 1]; for i in 0..N / 31 + 1 { let chunk = bytes_padded.slice::<31>(i * 31, i * 31 + 31);