瀏覽代碼

Run `cargo fmt`

Aloïs Micard 4 年之前
父節點
當前提交
57bce264c2
共有 1 個文件被更改,包括 3 次插入12 次删除
  1. 3 12
      src/lib.rs

+ 3 - 12
src/lib.rs

@@ -201,10 +201,7 @@ 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."
-)]
+#[deprecated(since = "1.8.0", note = "Please use the Builder pattern instead.")]
 pub fn init_with_level(level: Level) -> Result<(), SetLoggerError> {
     SimpleLogger::new()
         .with_level(level.to_level_filter())
@@ -212,19 +209,13 @@ pub fn init_with_level(level: Level) -> Result<(), SetLoggerError> {
 }
 
 /// See [this](struct.SimpleLogger.html#method.new)
-#[deprecated(
-since = "1.8.0",
-note = "Please use the Builder pattern instead."
-)]
+#[deprecated(since = "1.8.0", note = "Please use the Builder pattern instead.")]
 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."
-)]
+#[deprecated(since = "1.8.0", note = "Please use the Builder pattern instead.")]
 pub fn init_by_env() {
     SimpleLogger::from_env().init().unwrap()
 }