Skip to content

Commit

Permalink
fix: missing printing
Browse files Browse the repository at this point in the history
  • Loading branch information
brglng committed Aug 20, 2024
1 parent 9e9404f commit d3b07f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ enum Error {
PathQueue {
#[from]
source: path_queue::Error
}
},
}

type Result<T> = std::result::Result<T, Error>;
Expand Down Expand Up @@ -92,6 +92,8 @@ fn breadth_first_traverse(prog: &str, cwd: &Path, opt: &Options, in_queue: &Path
println!("{}", unsafe { path.strip_prefix("./").unwrap_unchecked() }.display());
} else if path.starts_with(cwd) {
println!("{}", unsafe { path.strip_prefix(cwd).unwrap_unchecked() }.display());
} else {
println!("{}", path.display());
}
} else {
println!("{}", path.display());
Expand Down

0 comments on commit d3b07f9

Please sign in to comment.