@@ -54,7 +54,7 @@ impl ConfigFile {
5454 config. gcc_path = Some ( value. as_str ( ) . to_string ( ) )
5555}
5656( "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`" ) ;
5858}
5959( "download-gccjit" , TomlValue :: Boolean ( value) ) => {
6060 config. download_gccjit = Some ( * value)
@@ -63,7 +63,7 @@ impl ConfigFile {
6363return failed_config_parsing (
6464 config_file,
6565"Expected a boolean for `download-gccjit`" ,
66- )
66+ ) ;
6767}
6868 _ => return failed_config_parsing ( config_file, & format ! ( "Unknown key `{}`" , key) ) ,
6969}
@@ -73,7 +73,7 @@ impl ConfigFile {
7373return failed_config_parsing (
7474 config_file,
7575"At least one of `gcc-path` or `download-gccjit` value must be set" ,
76- )
76+ ) ;
7777}
7878( Some ( _) , Some ( true ) ) => {
7979println ! (
@@ -144,7 +144,7 @@ impl ConfigInfo {
144144 _ => {
145145return Err (
146146"Expected a value after `--target-triple`, found nothing" . to_string ( )
147- )
147+ ) ;
148148}
149149} ,
150150"--out-dir" => match args. next ( ) {
@@ -158,7 +158,7 @@ impl ConfigInfo {
158158self . config_file = Some ( arg. to_string ( ) ) ;
159159}
160160 _ => {
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 ( ) ) ;
162162}
163163} ,
164164"--release-sysroot" => self . sysroot_release_channel = true ,
@@ -169,7 +169,7 @@ impl ConfigInfo {
169169self . cg_gcc_path = Some ( arg. into ( ) ) ;
170170}
171171 _ => {
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 ( ) ) ;
173173}
174174} ,
175175"--use-backend" => match args. next ( ) {
@@ -277,7 +277,7 @@ impl ConfigInfo {
277277self . gcc_path = match gcc_path {
278278Some ( path) => path,
279279None => {
280- return Err ( format ! ( "missing `gcc-path` value from `{}`" , config_file. display( ) , ) )
280+ return Err ( format ! ( "missing `gcc-path` value from `{}`" , config_file. display( ) , ) ) ;
281281}
282282} ;
283283Ok ( ( ) )
0 commit comments