about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/back
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-03 21:44:47 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2022-02-03 21:45:51 +0100
commitde2abc29e9f890433bef39eac46a84bdb9eaecf7 (patch)
tree36035607a8402f78c6cbb9de7cc316dbbbcf1825 /compiler/rustc_codegen_llvm/src/back
parent4e8fb743ccbec27344b2dd42de7057f41d4ebfdd (diff)
downloadrust-de2abc29e9f890433bef39eac46a84bdb9eaecf7.tar.gz
rust-de2abc29e9f890433bef39eac46a84bdb9eaecf7.zip
clippy::perf fixes
single_char_pattern and to_string_in_format_args
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back')
-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{}",