File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -957,7 +957,7 @@ fn invoke_rustc(builder: &SpirvBuilder) -> Result<PathBuf, SpirvBuilderError> {
957957
958958 let mut cargo = Command :: new ( "cargo" ) ;
959959 if let Some ( toolchain) = & builder. toolchain_overwrite {
960- cargo. arg ( format ! ( "+{}" , toolchain ) ) ;
960+ cargo. arg ( format ! ( "+{toolchain}" ) ) ;
961961 }
962962 cargo. args ( [
963963 "build" ,
@@ -1141,7 +1141,7 @@ fn leaf_deps(artifact: &Path, mut handle: impl FnMut(&RawStr)) -> std::io::Resul
11411141pub fn query_rustc_version ( toolchain : Option < & str > ) -> std:: io:: Result < Version > {
11421142 let mut cmd = Command :: new ( "rustc" ) ;
11431143 if let Some ( toolchain) = toolchain {
1144- cmd. arg ( format ! ( "+{}" , toolchain ) ) ;
1144+ cmd. arg ( format ! ( "+{toolchain}" ) ) ;
11451145 }
11461146 cmd. arg ( "--version" ) ;
11471147 let output = cmd. output ( ) ?;
@@ -1153,5 +1153,5 @@ pub fn query_rustc_version(toolchain: Option<&str>) -> std::io::Result<Version>
11531153 Version :: parse ( version) . ok ( )
11541154 } ;
11551155 Ok ( parse ( & stdout)
1156- . unwrap_or_else ( || panic ! ( "failed parsing `rustc --version` output `{}`" , stdout ) ) )
1156+ . unwrap_or_else ( || panic ! ( "failed parsing `rustc --version` output `{stdout }`" ) ) )
11571157}
You can’t perform that action at this time.
0 commit comments