From 43cf9d10d2729806a9eede7701792c351fda389d Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Fri, 5 Apr 2024 16:29:53 +0200 Subject: [PATCH] env_config improvements --- libs/utils/src/env_config.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/utils/src/env_config.rs b/libs/utils/src/env_config.rs index 823a49796c..4331ef1136 100644 --- a/libs/utils/src/env_config.rs +++ b/libs/utils/src/env_config.rs @@ -21,8 +21,8 @@ where pub struct Bool(bool); impl Bool { - pub const fn new_const() -> Self { - Bool(V) + pub const fn new(v: bool) -> Self { + Bool(v) } } @@ -41,8 +41,8 @@ impl FromStr for Bool { } } -impl Into for Bool { - fn into(self) -> bool { - self.0 +impl From for bool { + fn from(val: Bool) -> Self { + val.0 } }