aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/flags.rs
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src/flags.rs')
-rw-r--r--xtask/src/flags.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/xtask/src/flags.rs b/xtask/src/flags.rs
index 2ca05d3df..56eda5b1e 100644
--- a/xtask/src/flags.rs
+++ b/xtask/src/flags.rs
@@ -141,14 +141,6 @@ impl Xtask {
141// generated end 141// generated end
142 142
143impl Install { 143impl Install {
144 pub(crate) fn validate(&self) -> xflags::Result<()> {
145 if let Some(code_bin) = &self.code_bin {
146 if let Err(err) = code_bin.parse::<ClientOpt>() {
147 return Err(xflags::Error::new(format!("failed to parse `--code-bin`: {}", err)));
148 }
149 }
150 Ok(())
151 }
152 pub(crate) fn server(&self) -> Option<ServerOpt> { 144 pub(crate) fn server(&self) -> Option<ServerOpt> {
153 if self.client && !self.server { 145 if self.client && !self.server {
154 return None; 146 return None;
@@ -166,7 +158,6 @@ impl Install {
166 if !self.client && self.server { 158 if !self.client && self.server {
167 return None; 159 return None;
168 } 160 }
169 let client_opt = self.code_bin.as_ref().and_then(|it| it.parse().ok()).unwrap_or_default(); 161 Some(ClientOpt { code_bin: self.code_bin.clone() })
170 Some(client_opt)
171 } 162 }
172} 163}