about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/back/archive.rs
diff options
context:
space:
mode:
authorljedrz <ljedrz@gmail.com>2018-07-27 11:11:18 +0200
committerljedrz <ljedrz@gmail.com>2018-07-27 11:11:18 +0200
commit57a5a9b05423c4f832cd9a3aaa7e06d55fab6efa (patch)
treee376fc76ea7242b63d95e6c68e7955c627b785bf /src/librustc_codegen_llvm/back/archive.rs
parent3d0e93309d61636585cfe5ac75c0db8cb5ba03e1 (diff)
downloadrust-57a5a9b05423c4f832cd9a3aaa7e06d55fab6efa.tar.gz
rust-57a5a9b05423c4f832cd9a3aaa7e06d55fab6efa.zip
Prefer to_string() to format!()
Diffstat (limited to 'src/librustc_codegen_llvm/back/archive.rs')
-rw-r--r--src/librustc_codegen_llvm/back/archive.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/back/archive.rs b/src/librustc_codegen_llvm/back/archive.rs
index 9ea6c44502a..b99835cb5c6 100644
--- a/src/librustc_codegen_llvm/back/archive.rs
+++ b/src/librustc_codegen_llvm/back/archive.rs
@@ -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.