From f5cfec20bd5fbc079c57a70f4db09be611e5d976 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Tue, 4 Mar 2025 00:40:27 -0500 Subject: [PATCH] walkdir usage --- martin/build.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/martin/build.rs b/martin/build.rs index b5c64a8b6..6772f2a14 100644 --- a/martin/build.rs +++ b/martin/build.rs @@ -1,8 +1,8 @@ +#[cfg(feature = "webui")] use std::fs; +#[cfg(feature = "webui")] use std::path::Path; -use walkdir::WalkDir; - #[cfg(feature = "webui")] fn copy_file_tree(src: &Path, dst: &Path, exclude_dirs: &[&str]) { assert!( @@ -18,7 +18,7 @@ fn copy_file_tree(src: &Path, dst: &Path, exclude_dirs: &[&str]) { }); let excludes = exclude_dirs.iter().map(|v| src.join(v)).collect::>(); - let mut it = WalkDir::new(src).into_iter(); + let mut it = walkdir::WalkDir::new(src).into_iter(); loop { let entry = match it.next() { None => break,