From 36eff2f374c3e1fcb06984c81f764e5b556320a8 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 2 Oct 2021 20:02:29 +0200 Subject: Add deprecation notice to Environment::new Signed-off-by: Matthias Beyer --- src/env.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/env.rs b/src/env.rs index 4ea7bd0..a349dd6 100644 --- a/src/env.rs +++ b/src/env.rs @@ -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() } -- cgit v1.2.3