File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -13,25 +13,22 @@ use structopt::StructOpt;
13
13
usage = "cargo compiletest [FLAGS] [FILTER]..."
14
14
) ]
15
15
struct Opt {
16
- /// Automatically update stderr/stdout files
16
+ /// Automatically update stderr/stdout files.
17
17
#[ structopt( long) ]
18
18
bless : bool ,
19
19
20
20
/// The environment to compile to the SPIR-V tests.
21
- #[ structopt( long) ]
22
- target_env : Option < String > ,
21
+ #[ structopt( long, default_value = "spv1.3" ) ]
22
+ target_env : String ,
23
23
24
- /// Only run tests that match these filters
24
+ /// Only run tests that match these filters.
25
25
#[ structopt( name = "FILTER" ) ]
26
26
filters : Vec < String > ,
27
27
}
28
28
29
29
impl Opt {
30
30
pub fn environments ( & self ) -> Vec < String > {
31
- match & self . target_env {
32
- Some ( env) => env. split ( ',' ) . map ( String :: from) . collect ( ) ,
33
- None => vec ! [ "spv1.3" . into( ) ] ,
34
- }
31
+ self . target_env . split ( ',' ) . map ( String :: from) . collect ( )
35
32
}
36
33
}
37
34
You can’t perform that action at this time.
0 commit comments