Skip to content

Commit

Permalink
refactor(setup): use PathBuf::from instead of Path::new().to_path_buf()
Browse files Browse the repository at this point in the history
  • Loading branch information
Mubashwer committed Apr 16, 2024
1 parent e3e3284 commit da12979
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ impl Setup {
.output()?;

match output.status.success() {
true => Ok(Some(
Path::new(String::from_utf8(output.stdout)?.trim()).to_path_buf(),
)),
true => Ok(Some(PathBuf::from(
String::from_utf8(output.stdout)?.trim(),
))),
false => Ok(None),
}
}
Expand Down

0 comments on commit da12979

Please sign in to comment.