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 @@ -956,7 +956,7 @@ fn invoke_rustc(builder: &SpirvBuilder) -> Result<PathBuf, SpirvBuilderError> {
956956
957957 let mut cargo = Command :: new ( "cargo" ) ;
958958 if let Some ( toolchain) = & builder. toolchain_overwrite {
959- cargo. arg ( format ! ( "+{}" , toolchain ) ) ;
959+ cargo. arg ( format ! ( "+{toolchain}" ) ) ;
960960 }
961961 cargo. args ( [
962962 "build" ,
@@ -1137,7 +1137,7 @@ fn leaf_deps(artifact: &Path, mut handle: impl FnMut(&RawStr)) -> std::io::Resul
11371137pub fn query_rustc_version ( toolchain : Option < & str > ) -> std:: io:: Result < Version > {
11381138 let mut cmd = Command :: new ( "rustc" ) ;
11391139 if let Some ( toolchain) = toolchain {
1140- cmd. arg ( format ! ( "+{}" , toolchain ) ) ;
1140+ cmd. arg ( format ! ( "+{toolchain}" ) ) ;
11411141 }
11421142 cmd. arg ( "--version" ) ;
11431143 let output = cmd. output ( ) ?;
@@ -1149,5 +1149,5 @@ pub fn query_rustc_version(toolchain: Option<&str>) -> std::io::Result<Version>
11491149 Version :: parse ( version) . ok ( )
11501150 } ;
11511151 Ok ( parse ( & stdout)
1152- . unwrap_or_else ( || panic ! ( "failed parsing `rustc --version` output `{}`" , stdout ) ) )
1152+ . unwrap_or_else ( || panic ! ( "failed parsing `rustc --version` output `{stdout }`" ) ) )
11531153}
You can’t perform that action at this time.
0 commit comments