From 9692adbaf320ddb463ec712baa60d63ca1cccb82 Mon Sep 17 00:00:00 2001 From: TomAFrench Date: Sun, 21 Apr 2024 21:18:54 +0000 Subject: [PATCH] chore: more explicit `self` parameter in `Into` trait --- noir_stdlib/src/convert.nr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/noir_stdlib/src/convert.nr b/noir_stdlib/src/convert.nr index 00ac0a0fd8c..d3537df3c5e 100644 --- a/noir_stdlib/src/convert.nr +++ b/noir_stdlib/src/convert.nr @@ -12,12 +12,12 @@ impl From for T { // docs:start:into-trait trait Into { - fn into(input: Self) -> T; + fn into(self) -> T; } impl Into for U where T: From { - fn into(input: U) -> T { - T::from(input) + fn into(self) -> T { + T::from(self) } } // docs:end:into-trait