From d6e01119b5558e6ae427a69f65bf2d8796f67160 Mon Sep 17 00:00:00 2001 From: Ignazio Bovo Date: Tue, 20 Feb 2024 12:08:55 +0100 Subject: [PATCH] style: :rotating_light: fix linter --- runtime-modules/project-token/src/types.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/runtime-modules/project-token/src/types.rs b/runtime-modules/project-token/src/types.rs index 04ee66318ce..3d75346da20 100644 --- a/runtime-modules/project-token/src/types.rs +++ b/runtime-modules/project-token/src/types.rs @@ -647,15 +647,13 @@ impl AmmCurve { self.provided_supply.add(amount) }; - let res = amm_eval_inner::( + amm_eval_inner::( provided_supply_pre, provided_supply_post, self.slope, self.intercept, ) - .ok_or(Error::::ArithmeticError.into()); - - res + .ok_or_else(|| Error::::ArithmeticError.into()); } }