diff options
Diffstat (limited to 'xtask/src/flags.rs')
-rw-r--r-- | xtask/src/flags.rs | 11 |
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 | ||
143 | impl Install { | 143 | impl 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 | } |