Skip to content

Commit

Permalink
Add deprecation notice to Environment::new
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Beyer <[email protected]>
  • Loading branch information
matthiasbeyer committed Oct 2, 2021
1 parent 3b45e7f commit ff8c630
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub struct Environment {
}

impl Environment {
#[deprecated(since = "0.12.0", note = "please use 'Environment::default' instead")]
pub fn new() -> Self {
Environment::default()
}
Expand Down

0 comments on commit ff8c630

Please sign in to comment.