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