Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Nov 5, 2023
1 parent 033a8ef commit fd9165c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,7 @@ fn main() -> Result<()> {
console.setup_global_trace(args.level)?;
interrupt::install_handler();

let source_path: &Utf8Path = if let Some(p) = &args.dir {
p
} else {
Utf8Path::new(".")
};
let source_path: &Utf8Path = args.dir.as_deref().unwrap_or(Utf8Path::new("."));
let workspace_dir = cargo::find_workspace(source_path)?;
let config = if args.no_config {
config::Config::default()
Expand Down

0 comments on commit fd9165c

Please sign in to comment.