@@ -43,9 +43,9 @@ impl Write for FilterWriter {
4343/// Have an environment variable set at a value during this lifetime
4444struct WithEnvVarSet {
4545 /// Env var key
46- _previous_var_key : String ,
46+ previous_var_key : String ,
4747 /// Previous value set to this key
48- _previous_var_value : std:: result:: Result < String , env:: VarError > ,
48+ previous_var_value : std:: result:: Result < String , env:: VarError > ,
4949}
5050impl WithEnvVarSet {
5151 /// Save previous value assigned to key, set key=value
@@ -55,22 +55,22 @@ impl WithEnvVarSet {
5555 env:: set_var ( key, value) ;
5656 }
5757 Self {
58- _previous_var_key : String :: from ( key) ,
59- _previous_var_value : previous_env_value,
58+ previous_var_key : String :: from ( key) ,
59+ previous_var_value : previous_env_value,
6060 }
6161 }
6262}
6363
6464impl Drop for WithEnvVarSet {
6565 /// Restore previous value now that this is being dropped by context
6666 fn drop ( & mut self ) {
67- if let Ok ( ref prev_value) = self . _previous_var_value {
67+ if let Ok ( ref prev_value) = self . previous_var_value {
6868 unsafe {
69- env:: set_var ( & self . _previous_var_key , prev_value) ;
69+ env:: set_var ( & self . previous_var_key , prev_value) ;
7070 }
7171 } else {
7272 unsafe {
73- env:: remove_var ( & self . _previous_var_key ) ;
73+ env:: remove_var ( & self . previous_var_key ) ;
7474 }
7575 }
7676 }
0 commit comments