浏览代码

do not create intermediate string for log level

Andrey Kutejko 6 年之前
父节点
当前提交
0f0223b388
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/lib.rs

+ 1 - 1
src/lib.rs

@@ -20,7 +20,7 @@ impl Log for SimpleLogger {
             println!(
                 "{} {:<5} [{}] {}",
                 Local::now().format("%Y-%m-%d %H:%M:%S,%3f"),
-                record.level().to_string(),
+                record.level(),
                 record.module_path().unwrap_or_default(),
                 record.args());
         }