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 } }