Explorar el Código

Fix redundant closure clippy

Dario Nieuwenhuis hace 3 años
padre
commit
750fcb1887
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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>) {