about summary refs log tree commit diff
path: root/src/allocator.rs
diff options
context:
space:
mode:
authortempdragon <645703113@qq.com>2024-02-29 10:33:11 +0800
committertempdragon <645703113@qq.com>2024-02-29 10:33:11 +0800
commitaeffc2fcaa719a052eb832212855d9c400277edb (patch)
treef1ba2661ba3381d07862996cbfb7a3732ee1c58e /src/allocator.rs
parentd0ecf0c262e85876734799c342891845be07e7fb (diff)
downloadrust-aeffc2fcaa719a052eb832212855d9c400277edb.tar.gz
rust-aeffc2fcaa719a052eb832212855d9c400277edb.zip
fix(fmt/style): Clippy-generated Code Correction
Modifications to Commit:
	Modified:     src/allocator.rs
	Modified:     src/asm.rs
	Modified:     src/back/lto.rs
	Modified:     src/consts.rs
	Modified:     src/debuginfo.rs
	Modified:     src/intrinsic/mod.rs
	Modified:     src/lib.rs
	Modified:     src/mono_item.rs
	Modified:     src/type_.rs
	Modified:     tests/lang_tests_common.rs
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,