Prefer to_string() to format!()

This commit is contained in:
ljedrz
2018-07-27 11:11:18 +02:00
parent 3d0e93309d
commit 57a5a9b054
36 changed files with 95 additions and 95 deletions

View File

@@ -925,7 +925,7 @@ impl<'a> Builder<'a> {
cargo.env("RUSTC_VERIFY_LLVM_IR", "1");
}
cargo.env("RUSTC_VERBOSE", format!("{}", self.verbosity));
cargo.env("RUSTC_VERBOSE", self.verbosity.to_string());
// in std, we want to avoid denying warnings for stage 0 as that makes cfg's painful.
if self.config.deny_warnings && !(mode == Mode::Std && stage == 0) {