Skip to content

Commit

Permalink
walkdir usage
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Mar 4, 2025
1 parent 98aca25 commit f5cfec2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions martin/build.rs
Original file line number Diff line number Diff line change
@@ -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!(
Expand All @@ -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::<Vec<_>>();

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,
Expand Down

0 comments on commit f5cfec2

Please sign in to comment.