File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ use std::{env, path::PathBuf};
2
2
3
3
use crate :: Target ;
4
4
use crate :: cargo:: Subcommand ;
5
- use crate :: errors:: Result ;
6
5
use crate :: rustc:: TargetList ;
7
6
8
7
#[ derive( Debug ) ]
@@ -14,7 +13,7 @@ pub struct Args {
14
13
pub target_dir : Option < PathBuf > ,
15
14
}
16
15
17
- pub fn parse ( target_list : & TargetList ) -> Result < Args > {
16
+ pub fn parse ( target_list : & TargetList ) -> Args {
18
17
let mut channel = None ;
19
18
let mut target = None ;
20
19
let mut target_dir = None ;
@@ -56,11 +55,11 @@ pub fn parse(target_list: &TargetList) -> Result<Args> {
56
55
}
57
56
}
58
57
59
- Ok ( Args {
58
+ Args {
60
59
all,
61
60
subcommand : sc,
62
61
channel,
63
62
target,
64
63
target_dir,
65
- } )
64
+ }
66
65
}
Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ pub fn main() {
208
208
209
209
fn run ( ) -> Result < ExitStatus > {
210
210
let target_list = rustc:: target_list ( false ) ?;
211
- let args = cli:: parse ( & target_list) ? ;
211
+ let args = cli:: parse ( & target_list) ;
212
212
213
213
if args. all . iter ( ) . any ( |a| a == "--version" || a == "-V" ) &&
214
214
args. subcommand . is_none ( ) {
You can’t perform that action at this time.
0 commit comments