File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -40,17 +40,14 @@ pub fn exec(config: &mut Config, args: &ArgMatches<'_>) -> CliResult {
40
40
) ?;
41
41
42
42
// Disallow `spec` to be an glob pattern
43
- match & compile_opts. spec {
44
- Packages :: Packages ( opt_in) => {
45
- if let Some ( pattern) = opt_in. iter ( ) . find ( |s| is_glob_pattern ( s) ) {
46
- return Err ( anyhow:: anyhow!(
47
- "`cargo run` does not support glob pattern `{}` on package selection" ,
48
- pattern,
49
- )
50
- . into ( ) ) ;
51
- }
43
+ if let Packages :: Packages ( opt_in) = & compile_opts. spec {
44
+ if let Some ( pattern) = opt_in. iter ( ) . find ( |s| is_glob_pattern ( s) ) {
45
+ return Err ( anyhow:: anyhow!(
46
+ "`cargo run` does not support glob pattern `{}` on package selection" ,
47
+ pattern,
48
+ )
49
+ . into ( ) ) ;
52
50
}
53
- _ => ( ) ,
54
51
}
55
52
56
53
if !args. is_present ( "example" ) && !args. is_present ( "bin" ) {
You can’t perform that action at this time.
0 commit comments