diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-03-05 10:29:59 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-05 10:29:59 +0000 |
commit | ee75928855ba0b969376de9a13232895df24066b (patch) | |
tree | ebf6c4374e224174ad13134809e2d800e13272ac /xtask/src/dist.rs | |
parent | 31fd10b2a5fe11476e7f4a21b0f0955ea934e3a6 (diff) | |
parent | ca62f568bec128d2eba2032337354e01ebef6858 (diff) |
Merge #3471
3471: Remove pwd r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'xtask/src/dist.rs')
-rw-r--r-- | xtask/src/dist.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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; | |||
3 | use anyhow::Result; | 3 | use anyhow::Result; |
4 | 4 | ||
5 | use crate::{ | 5 | use crate::{ |
6 | not_bash::{fs2, pushd, pwd, rm_rf, run}, | 6 | not_bash::{fs2, pushd, rm_rf, run}, |
7 | project_root, | 7 | project_root, |
8 | }; | 8 | }; |
9 | 9 | ||
@@ -22,7 +22,7 @@ pub fn run_dist(nightly: bool) -> Result<()> { | |||
22 | fn dist_client(nightly: bool) -> Result<()> { | 22 | fn dist_client(nightly: bool) -> Result<()> { |
23 | let _d = pushd("./editors/code"); | 23 | let _d = pushd("./editors/code"); |
24 | 24 | ||
25 | let package_json_path = pwd().join("package.json"); | 25 | let package_json_path = PathBuf::from("./package.json"); |
26 | let original_package_json = fs2::read_to_string(&package_json_path)?; | 26 | let original_package_json = fs2::read_to_string(&package_json_path)?; |
27 | let _restore = | 27 | let _restore = |
28 | Restore { path: package_json_path.clone(), contents: original_package_json.clone() }; | 28 | Restore { path: package_json_path.clone(), contents: original_package_json.clone() }; |