diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-01 17:51:35 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-01 17:51:35 +0000 |
commit | 5efb7f85eb24c7ad76136a7d81e8f8cffe213aa8 (patch) | |
tree | 0795d7277733920361a260db1a65306f1a47e1ac /xtask/src/dist.rs | |
parent | c17f2bf2a27798858ef2e3012ca28295aed46efa (diff) | |
parent | d9dcfd81c5d4325379ac88c4250b9c77ecbd75e8 (diff) |
Merge #7830
7830: Simplify xtask 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 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs index 56bf9f99d..f2503f807 100644 --- a/xtask/src/dist.rs +++ b/xtask/src/dist.rs | |||
@@ -11,13 +11,13 @@ use xshell::{cmd, cp, mkdir_p, pushd, read_file, rm_rf, write_file}; | |||
11 | 11 | ||
12 | use crate::{date_iso, project_root}; | 12 | use crate::{date_iso, project_root}; |
13 | 13 | ||
14 | pub struct DistCmd { | 14 | pub(crate) struct DistCmd { |
15 | pub nightly: bool, | 15 | pub(crate) nightly: bool, |
16 | pub client_version: Option<String>, | 16 | pub(crate) client_version: Option<String>, |
17 | } | 17 | } |
18 | 18 | ||
19 | impl DistCmd { | 19 | impl DistCmd { |
20 | pub fn run(self) -> Result<()> { | 20 | pub(crate) fn run(self) -> Result<()> { |
21 | let dist = project_root().join("dist"); | 21 | let dist = project_root().join("dist"); |
22 | rm_rf(&dist)?; | 22 | rm_rf(&dist)?; |
23 | mkdir_p(&dist)?; | 23 | mkdir_p(&dist)?; |