Prefer to_string() to format!()
This commit is contained in:
parent
3d0e93309d
commit
57a5a9b054
36 changed files with 95 additions and 95 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue