diff --git a/libs/utils/src/env_config.rs b/libs/utils/src/env_config.rs index be0fd58c57..4bafbe57a0 100644 --- a/libs/utils/src/env_config.rs +++ b/libs/utils/src/env_config.rs @@ -35,32 +35,3 @@ where } } } - -pub struct Bool(bool); - -impl Bool { - pub const fn new(v: bool) -> Self { - Bool(v) - } -} - -impl FromStr for Bool { - type Err = String; - - fn from_str(s: &str) -> Result { - if let Ok(b) = s.parse() { - return Ok(Bool(b)); - } - Ok(Bool(match s { - "0" => false, - "1" => true, - _ => return Err(format!("not a bool, accepting 0|1|{}|{}", false, true)), - })) - } -} - -impl From for bool { - fn from(val: Bool) -> Self { - val.0 - } -}