소스 검색

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>) {