浏览代码

Fix redundant closure clippy

Dario Nieuwenhuis 3 年之前
父节点
当前提交
750fcb1887
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/utils.rs

+ 1 - 1
examples/utils.rs

@@ -64,7 +64,7 @@ where
 
 #[cfg(feature = "log")]
 pub fn setup_logging(filter: &str) {
-    setup_logging_with_clock(filter, move || Instant::now())
+    setup_logging_with_clock(filter, Instant::now)
 }
 
 pub fn create_options() -> (Options, Vec<&'static str>) {