@@ -54,7 +54,7 @@ impl ConfigFile {
54
54
config. gcc_path = Some ( value. as_str ( ) . to_string ( ) )
55
55
}
56
56
( "gcc-path" , _) => {
57
- return failed_config_parsing ( config_file, "Expected a string for `gcc-path`" )
57
+ return failed_config_parsing ( config_file, "Expected a string for `gcc-path`" ) ;
58
58
}
59
59
( "download-gccjit" , TomlValue :: Boolean ( value) ) => {
60
60
config. download_gccjit = Some ( * value)
@@ -63,7 +63,7 @@ impl ConfigFile {
63
63
return failed_config_parsing (
64
64
config_file,
65
65
"Expected a boolean for `download-gccjit`" ,
66
- )
66
+ ) ;
67
67
}
68
68
_ => return failed_config_parsing ( config_file, & format ! ( "Unknown key `{}`" , key) ) ,
69
69
}
@@ -73,7 +73,7 @@ impl ConfigFile {
73
73
return failed_config_parsing (
74
74
config_file,
75
75
"At least one of `gcc-path` or `download-gccjit` value must be set" ,
76
- )
76
+ ) ;
77
77
}
78
78
( Some ( _) , Some ( true ) ) => {
79
79
println ! (
@@ -144,7 +144,7 @@ impl ConfigInfo {
144
144
_ => {
145
145
return Err (
146
146
"Expected a value after `--target-triple`, found nothing" . to_string ( )
147
- )
147
+ ) ;
148
148
}
149
149
} ,
150
150
"--out-dir" => match args. next ( ) {
@@ -158,7 +158,7 @@ impl ConfigInfo {
158
158
self . config_file = Some ( arg. to_string ( ) ) ;
159
159
}
160
160
_ => {
161
- return Err ( "Expected a value after `--config-file`, found nothing" . to_string ( ) )
161
+ return Err ( "Expected a value after `--config-file`, found nothing" . to_string ( ) ) ;
162
162
}
163
163
} ,
164
164
"--release-sysroot" => self . sysroot_release_channel = true ,
@@ -169,7 +169,7 @@ impl ConfigInfo {
169
169
self . cg_gcc_path = Some ( arg. into ( ) ) ;
170
170
}
171
171
_ => {
172
- return Err ( "Expected a value after `--cg_gcc-path`, found nothing" . to_string ( ) )
172
+ return Err ( "Expected a value after `--cg_gcc-path`, found nothing" . to_string ( ) ) ;
173
173
}
174
174
} ,
175
175
"--use-backend" => match args. next ( ) {
@@ -277,7 +277,7 @@ impl ConfigInfo {
277
277
self . gcc_path = match gcc_path {
278
278
Some ( path) => path,
279
279
None => {
280
- return Err ( format ! ( "missing `gcc-path` value from `{}`" , config_file. display( ) , ) )
280
+ return Err ( format ! ( "missing `gcc-path` value from `{}`" , config_file. display( ) , ) ) ;
281
281
}
282
282
} ;
283
283
Ok ( ( ) )
0 commit comments