From ca62f568bec128d2eba2032337354e01ebef6858 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 5 Mar 2020 11:15:55 +0100 Subject: Remove pwd --- xtask/src/dist.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xtask/src/dist.rs') diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs index e1126602a..821ba041b 100644 --- a/xtask/src/dist.rs +++ b/xtask/src/dist.rs @@ -3,7 +3,7 @@ use std::path::PathBuf; use anyhow::Result; use crate::{ - not_bash::{fs2, pushd, pwd, rm_rf, run}, + not_bash::{fs2, pushd, rm_rf, run}, project_root, }; @@ -22,7 +22,7 @@ pub fn run_dist(nightly: bool) -> Result<()> { fn dist_client(nightly: bool) -> Result<()> { let _d = pushd("./editors/code"); - let package_json_path = pwd().join("package.json"); + let package_json_path = PathBuf::from("./package.json"); let original_package_json = fs2::read_to_string(&package_json_path)?; let _restore = Restore { path: package_json_path.clone(), contents: original_package_json.clone() }; -- cgit v1.2.3