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> {
957
957
958
958
let mut cargo = Command :: new ( "cargo" ) ;
959
959
if let Some ( toolchain) = & builder. toolchain_overwrite {
960
- cargo. arg ( format ! ( "+{}" , toolchain ) ) ;
960
+ cargo. arg ( format ! ( "+{toolchain}" ) ) ;
961
961
}
962
962
cargo. args ( [
963
963
"build" ,
@@ -1141,7 +1141,7 @@ fn leaf_deps(artifact: &Path, mut handle: impl FnMut(&RawStr)) -> std::io::Resul
1141
1141
pub fn query_rustc_version ( toolchain : Option < & str > ) -> std:: io:: Result < Version > {
1142
1142
let mut cmd = Command :: new ( "rustc" ) ;
1143
1143
if let Some ( toolchain) = toolchain {
1144
- cmd. arg ( format ! ( "+{}" , toolchain ) ) ;
1144
+ cmd. arg ( format ! ( "+{toolchain}" ) ) ;
1145
1145
}
1146
1146
cmd. arg ( "--version" ) ;
1147
1147
let output = cmd. output ( ) ?;
@@ -1153,5 +1153,5 @@ pub fn query_rustc_version(toolchain: Option<&str>) -> std::io::Result<Version>
1153
1153
Version :: parse ( version) . ok ( )
1154
1154
} ;
1155
1155
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 }`" ) ) )
1157
1157
}
You can’t perform that action at this time.
0 commit comments