bootstrap: remove redundant to_path_buf()

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2025-02-04 21:30:36 +08:00
parent 5238337d52
commit 7d2e4e4b69

View file

@ -1785,7 +1785,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
let sysroot = if builder.top_stage == 0 {
builder.initial_sysroot.clone()
} else {
builder.sysroot(compiler).to_path_buf()
builder.sysroot(compiler)
};
cmd.arg("--sysroot-base").arg(sysroot);