Skip to content

Commit

Permalink
feat: when using the current working directory, use . as the base a…
Browse files Browse the repository at this point in the history
…nd not the absolute path

This makes output much shorter and has not possiblity of failure too.
  • Loading branch information
poliorcetics authored and bnjbvr committed Feb 22, 2024
1 parent 6a7a13b commit 9aa9978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ fn run_machete() -> anyhow::Result<bool> {

if args.paths.is_empty() {
eprintln!("Analyzing dependencies of crates in this directory...");
args.paths.push(std::env::current_dir()?);
args.paths.push(PathBuf::from("."));
} else {
eprintln!(
"Analyzing dependencies of crates in {}...",
Expand Down

0 comments on commit 9aa9978

Please sign in to comment.