Explorar o código

Merge branch 'revert_deprecations'

Sam Clements %!s(int64=3) %!d(string=hai) anos
pai
achega
a389c0a5a0
Modificáronse 1 ficheiros con 3 adicións e 6 borrados
  1. 3 6
      src/lib.rs

+ 3 - 6
src/lib.rs

@@ -277,22 +277,19 @@ fn set_up_color_terminal() {
     }
 }
 
-/// See [this](struct.SimpleLogger.html#method.with_level)
-#[deprecated(since = "1.8.0", note = "Please use the Builder pattern instead.")]
+/// See [`SimpleLogger::with_level`]
 pub fn init_with_level(level: Level) -> Result<(), SetLoggerError> {
     SimpleLogger::new()
         .with_level(level.to_level_filter())
         .init()
 }
 
-/// See [this](struct.SimpleLogger.html#method.new)
-#[deprecated(since = "1.8.0", note = "Please use the Builder pattern instead.")]
+/// See [`SimpleLogger::new`]
 pub fn init() -> Result<(), SetLoggerError> {
     SimpleLogger::new().init()
 }
 
-/// See [this](struct.SimpleLogger.html#method.from_env)
-#[deprecated(since = "1.8.0", note = "Please use the Builder pattern instead.")]
+/// See [`SimpleLogger::from_env`]
 pub fn init_by_env() {
     SimpleLogger::from_env().init().unwrap()
 }