about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-04 14:59:05 +0100
committerGitHub <noreply@github.com>2022-02-04 14:59:05 +0100
commit03cad867a648522972793dfeeb5bf511ab1dc13e (patch)
tree05955a692abed4197f76c6d8a209aa3706c879da /compiler/rustc_codegen_llvm/src
parent92a7f5fa07d3c11e0ee4d3c2e4107add06e3e730 (diff)
parentde2abc29e9f890433bef39eac46a84bdb9eaecf7 (diff)
downloadrust-03cad867a648522972793dfeeb5bf511ab1dc13e.tar.gz
rust-03cad867a648522972793dfeeb5bf511ab1dc13e.zip
Rollup merge of #93630 - matthiaskrgr:clipperf, r=oli-obk
clippy::perf fixes

single_char_pattern and to_string_in_format_args
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/back/archive.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/back/archive.rs b/compiler/rustc_codegen_llvm/src/back/archive.rs
index 5703a72c686..8a1dea4d99b 100644
--- a/compiler/rustc_codegen_llvm/src/back/archive.rs
+++ b/compiler/rustc_codegen_llvm/src/back/archive.rs
@@ -219,7 +219,7 @@ impl<'a> ArchiveBuilder<'a> for LlvmArchiveBuilder<'a> {
 
             match result {
                 Err(e) => {
-                    self.config.sess.fatal(&format!("Error calling dlltool: {}", e.to_string()));
+                    self.config.sess.fatal(&format!("Error calling dlltool: {}", e));
                 }
                 Ok(output) if !output.status.success() => self.config.sess.fatal(&format!(
                     "Dlltool could not create import library: {}\n{}",