Skip to content

Commit

Permalink
Replace unwrap with ?
Browse files Browse the repository at this point in the history
  • Loading branch information
iho committed Oct 11, 2023
1 parent 85a39cc commit bae7fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cargo-near/src/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ where
if let Some(path) = working_dir {
let path = path.as_ref();
// remove UNC prefix to be able to compile on Windows
let path = force_canonicalize_dir(path).unwrap();
let path = force_canonicalize_dir(path)?;
log::debug!("Setting cargo working dir to '{}'", path);
cmd.current_dir(path);
}
Expand Down

0 comments on commit bae7fe5

Please sign in to comment.