Skip to content

Commit

Permalink
fix: Silence unused variable warnings in stdlib (#2795)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfecher authored Sep 22, 2023
1 parent 2ea473d commit 5747bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions noir_stdlib/src/lib.nr
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ pub fn assert_constant<T>(_x: T) {}
// `as` should be the default for users to cast between primitive types, and in the future
// traits can be used to work with generic types.
#[builtin(from_field)]
fn from_field<T>(x : Field) -> T {}
fn from_field<T>(_x : Field) -> T {}

#[builtin(as_field)]
fn as_field<T>(x : T) -> Field {}
fn as_field<T>(_x : T) -> Field {}


pub fn wrapping_add<T>(x : T, y: T) -> T {
Expand Down

0 comments on commit 5747bfe

Please sign in to comment.