diff options
author | Aleksey Kladov <[email protected]> | 2020-06-08 13:00:30 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-06-08 13:05:14 +0100 |
commit | cbc5eb87386e132c63ec33ff496019fad7478fe8 (patch) | |
tree | 44a5d2c0df7ee420dabea534d679792bc4acc15c /xtask/src/main.rs | |
parent | 97ea2dfc4b6b49a175d4d0f85b37c77bd1ea3f3b (diff) |
Refactor
Diffstat (limited to 'xtask/src/main.rs')
-rw-r--r-- | xtask/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 701c60fc0..f7a79362d 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs | |||
@@ -17,7 +17,7 @@ use xtask::{ | |||
17 | install::{ClientOpt, InstallCmd, ServerOpt}, | 17 | install::{ClientOpt, InstallCmd, ServerOpt}, |
18 | not_bash::pushd, | 18 | not_bash::pushd, |
19 | pre_commit, project_root, | 19 | pre_commit, project_root, |
20 | release::run_release, | 20 | release::ReleaseCmd, |
21 | run_clippy, run_fuzzer, run_pre_cache, run_rustfmt, Result, | 21 | run_clippy, run_fuzzer, run_pre_cache, run_rustfmt, Result, |
22 | }; | 22 | }; |
23 | 23 | ||
@@ -103,7 +103,7 @@ FLAGS: | |||
103 | "release" => { | 103 | "release" => { |
104 | let dry_run = args.contains("--dry-run"); | 104 | let dry_run = args.contains("--dry-run"); |
105 | args.finish()?; | 105 | args.finish()?; |
106 | run_release(dry_run) | 106 | ReleaseCmd { dry_run }.run() |
107 | } | 107 | } |
108 | "dist" => { | 108 | "dist" => { |
109 | let nightly = args.contains("--nightly"); | 109 | let nightly = args.contains("--nightly"); |