Преглед на файлове

Fix redundant closure clippy

Dario Nieuwenhuis преди 4 години
родител
ревизия
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>) {