Skip to content

Commit 7264c5f

Browse files
committed
Use current_directory
1 parent e89695a commit 7264c5f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

xtask/src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@ fn main() -> Result<()> {
153153
.filter_module("xtask", log::LevelFilter::Info)
154154
.init();
155155

156-
let workspace = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
157-
let workspace = workspace.parent().unwrap().canonicalize()?;
156+
let workspace = std::env::current_dir()?;
158157

159158
match Cli::parse() {
160159
Cli::BuildDocumentation(args) => build_documentation(&workspace, args),

0 commit comments

Comments
 (0)