Skip to content

Commit

Permalink
chore: more explicit self parameter in Into trait
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Apr 21, 2024
1 parent 0735635 commit 9692adb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions noir_stdlib/src/convert.nr
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ impl<T> From<T> for T {

// docs:start:into-trait
trait Into<T> {
fn into(input: Self) -> T;
fn into(self) -> T;
}

impl<T, U> Into<T> for U where T: From<U> {
fn into(input: U) -> T {
T::from(input)
fn into(self) -> T {
T::from(self)
}
}
// docs:end:into-trait
Expand Down

0 comments on commit 9692adb

Please sign in to comment.