diff options
Diffstat (limited to 'src/env.rs')
-rw-r--r-- | src/env.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -67,13 +67,13 @@ pub struct Environment { impl Environment { #[deprecated(since = "0.12.0", note = "please use 'Environment::default' instead")] pub fn new() -> Self { - Environment::default() + Self::default() } pub fn with_prefix(s: &str) -> Self { - Environment { + Self { prefix: Some(s.into()), - ..Environment::default() + ..Self::default() } } |