Skip to content

Commit

Permalink
chore: run nargo fmt on each nargo project (AztecProtocol/aztec-packa…
Browse files Browse the repository at this point in the history
…ges#5102)

Quickly wrote and ran https://github.com/just-mitch/format_all_nargo
over the project root.
  • Loading branch information
AztecBot committed Mar 9, 2024
2 parents 8657c6b + 61840d0 commit 7807ce1
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .aztec-sync-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6206becb094bed9163e77b1f67b78bdd30a72c38
b32725421171f39d510619c8f78a39c182738725
2 changes: 1 addition & 1 deletion compiler/wasm/test/fixtures/deps/lib-c/src/lib.nr
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mod module;
mod module;
2 changes: 1 addition & 1 deletion compiler/wasm/test/fixtures/deps/lib-c/src/module.nr
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mod foo;
mod foo;
2 changes: 1 addition & 1 deletion compiler/wasm/test/fixtures/deps/lib-c/src/module/foo.nr
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub fn bar(param: Field) -> Field {
dep::std::hash::pedersen_hash([param])
dep::std::hash::pedersen_hash([param])
}
1 change: 0 additions & 1 deletion compiler/wasm/test/fixtures/noir-contract/src/main.nr
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ contract TestContract {
open fn openFunction() -> pub Field {
42
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ fn main(x: Field, y: pub Field) {
let z = x + y;
assert(z != y, f"Expected z != y, but got both equal {z}");
assert_eq(x, y, f"Expected x == y, but x is {x} and y is {y}");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ unconstrained fn conditional(x: Field) -> Field {
assert_eq(z, 25, f"Expected 25 but got {z}");
assert(x == 10, f"Expected x to equal 10, but got {x}");
1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ unconstrained fn mut_ref_identity(value: &mut Field) -> Field {
fn main(mut x: Field, y: pub Field) {
let returned_x = mut_ref_identity(&mut x);
assert(returned_x == x);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ contract Foo {
struct T { x: [Field] }

impl T {
fn t(self){}
fn t(self) {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ contract Foo {
}
// Regression for issue #3344
#[contract_library_method]
fn foo(x : u8) -> u8 {
fn foo(x: u8) -> u8 {
x
}
}
1 change: 0 additions & 1 deletion test_programs/test_libraries/exporting_lib/src/lib.nr
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

struct MyStruct {
inner: Field
}
Expand Down

0 comments on commit 7807ce1

Please sign in to comment.