From 5f3a09d834d1e68032cf18b3d6ce3a24f82d7614 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Mon, 20 Nov 2017 12:26:45 +0000 Subject: [PATCH] remove the Environment inherited attribute It isn't used outside of the constructors. --- src/lib.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index e9062eb..60f633c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,15 +9,12 @@ use std::iter::FromIterator; pub struct Environment { /// Customized environment variables vars: HashMap, - /// Define if the structure must inherit - inherit: bool, } impl Default for Environment { fn default() -> Self { Self { vars: HashMap::new(), - inherit: false, } } } @@ -41,7 +38,6 @@ impl Environment { pub fn inherit() -> Self { Self { vars: ::std::env::vars_os().collect(), - inherit: true, } } @@ -158,7 +154,6 @@ impl FromIterator<(T, Z)> for Environment { ) }) .collect(), - inherit: false, } } } @@ -195,7 +190,6 @@ macro_rules! __impl_from { OsString::from(v.to_string()), ) }).collect(), - inherit: false } } }