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/metrics.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/metrics.rs')
-rw-r--r-- | xtask/src/metrics.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xtask/src/metrics.rs b/xtask/src/metrics.rs index 624ad3b7e..babc2a6d4 100644 --- a/xtask/src/metrics.rs +++ b/xtask/src/metrics.rs | |||
@@ -11,12 +11,12 @@ use xshell::{cmd, mkdir_p, pushd, pushenv, read_file, rm_rf}; | |||
11 | 11 | ||
12 | type Unit = String; | 12 | type Unit = String; |
13 | 13 | ||
14 | pub struct MetricsCmd { | 14 | pub(crate) struct MetricsCmd { |
15 | pub dry_run: bool, | 15 | pub(crate) dry_run: bool, |
16 | } | 16 | } |
17 | 17 | ||
18 | impl MetricsCmd { | 18 | impl MetricsCmd { |
19 | pub fn run(self) -> Result<()> { | 19 | pub(crate) fn run(self) -> Result<()> { |
20 | let mut metrics = Metrics::new()?; | 20 | let mut metrics = Metrics::new()?; |
21 | if !self.dry_run { | 21 | if !self.dry_run { |
22 | rm_rf("./target/release")?; | 22 | rm_rf("./target/release")?; |