Skip to content

Commit

Permalink
refactor: remove path-absolutize dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat committed Dec 5, 2023
1 parent a69711b commit 253d491
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion tools/cargo-miden/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,5 @@ clap.workspace = true
anyhow.workspace = true
cargo_metadata = "0.18"
cargo-generate = "0.18"
path-absolutize = "3.1.1"

[dev-dependencies]
5 changes: 1 addition & 4 deletions tools/cargo-miden/src/new_project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ pub fn new_project(path: PathBuf) -> anyhow::Result<()> {
},
destination: path
.parent()
.map(|p| {
use path_absolutize::Absolutize;
p.absolutize().map(|p| p.to_path_buf())
})
.map(|p| p.canonicalize().map(|p| p.to_path_buf()))
.transpose()
.context("Failed to convert destination path to an absolute path")?,
name: Some(name),
Expand Down

0 comments on commit 253d491

Please sign in to comment.