about summary refs log tree commit diff
path: root/src/allocator.rs
diff options
context:
space:
mode:
authorantoyo <antoyo@users.noreply.github.com>2024-03-04 08:07:26 -0500
committerGitHub <noreply@github.com>2024-03-04 08:07:26 -0500
commite4ec64a1c41ca7a662b85f8aabf2e4ae2c40f1cc (patch)
tree7e7c2eded91b18cd1660eedc33aa5d352badc025 /src/allocator.rs
parent3937fd15b597a3c3df8828d06762f0681ccc7219 (diff)
parentaeffc2fcaa719a052eb832212855d9c400277edb (diff)
downloadrust-e4ec64a1c41ca7a662b85f8aabf2e4ae2c40f1cc.tar.gz
rust-e4ec64a1c41ca7a662b85f8aabf2e4ae2c40f1cc.zip
Merge pull request #459 from tempdragon/master
fix(fmt/style): Clippy-generated Code Correction
Diffstat (limited to 'src/allocator.rs')
-rw-r--r--src/allocator.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/allocator.rs b/src/allocator.rs
index 5cfd654a204..deeb55e9d12 100644
--- a/src/allocator.rs
+++ b/src/allocator.rs
@@ -63,7 +63,7 @@ pub(crate) unsafe fn codegen(
         tcx,
         context,
         "__rust_alloc_error_handler",
-        &alloc_error_handler_name(alloc_error_handler_kind),
+        alloc_error_handler_name(alloc_error_handler_kind),
         &[usize, usize],
         None,
     );
@@ -93,7 +93,7 @@ fn create_wrapper_function(
     let args: Vec<_> = types
         .iter()
         .enumerate()
-        .map(|(index, typ)| context.new_parameter(None, *typ, &format!("param{}", index)))
+        .map(|(index, typ)| context.new_parameter(None, *typ, format!("param{}", index)))
         .collect();
     let func = context.new_function(
         None,
@@ -115,7 +115,7 @@ fn create_wrapper_function(
     let args: Vec<_> = types
         .iter()
         .enumerate()
-        .map(|(index, typ)| context.new_parameter(None, *typ, &format!("param{}", index)))
+        .map(|(index, typ)| context.new_parameter(None, *typ, format!("param{}", index)))
         .collect();
     let callee = context.new_function(
         None,