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,