From b8bd97c7510e9ea7303c8e8c16719dbb42374596 Mon Sep 17 00:00:00 2001 From: kashbrti Date: Thu, 12 Dec 2024 13:19:57 +0000 Subject: [PATCH] fixed the string formatting (#22) --- src/utils/derive_offset_generators.nr | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/utils/derive_offset_generators.nr b/src/utils/derive_offset_generators.nr index 5c00359..fc8e8b7 100644 --- a/src/utils/derive_offset_generators.nr +++ b/src/utils/derive_offset_generators.nr @@ -518,21 +518,21 @@ where offset_generator_final[1] = gen.y.__mul(zzz); } - println(f"pub struct {curvestr} {}"); + println(f"pub struct {curvestr} {{}}"); println( - f"impl CurveParamsTrait> for {curvestr} {", + f"impl CurveParamsTrait> for {curvestr} {{", ); - println(f" fn a() -> BigNum<{n}, {paramstr}> { {a} }"); - println(f" fn b() -> BigNum<{n}, {paramstr}> { {b} }"); - println(f" fn one() -> [BigNum<{n}, {paramstr}>; 2] { {one} }"); + println(f" fn a() -> BigNum<{n}, {paramstr}> {{ {a} }}"); + println(f" fn b() -> BigNum<{n}, {paramstr}> {{ {b} }}"); + println(f" fn one() -> [BigNum<{n}, {paramstr}>; 2] {{ {one} }}"); println( - f" fn offset_generator() -> [BigNum<{n}, {paramstr}>; 2] { {offset_generator_initial} }", + f" fn offset_generator() -> [BigNum<{n}, {paramstr}>; 2] {{ {offset_generator_initial} }}", ); println( - f" fn offset_generator_final() -> [BigNum<{n}, {paramstr}>; 2] { {offset_generator_final} }", + f" fn offset_generator_final() -> [BigNum<{n}, {paramstr}>; 2] {{ {offset_generator_final} }}", ); - println("}"); + println("}}"); } #[test]