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

@ -149,7 +149,7 @@ impl<'a> ArchiveBuilder<'a> {
// Ignoring obj file starting with the crate name
// as simple comparison is not enough - there
// might be also an extra name suffix
let obj_start = format!("{}", name);
let obj_start = name.to_owned();
self.add_archive(rlib, move |fname: &str| {
// Ignore bytecode/metadata files, no matter the name.

View file

@ -810,7 +810,7 @@ fn link_natively(sess: &Session,
}
};
linker_error.note(&format!("{}", e));
linker_error.note(&e.to_string());
if !linker_not_found {
linker_error.note(&format!("{:?}", &cmd));