Skip to content

Commit 3f92261

Browse files
committed
Generate better function argument names in global_allocator expansion
1 parent 88a79c6 commit 3f92261

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/allocator.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ fn codegen_inner(
3939
if kind == AllocatorKind::Default {
4040
for method in ALLOCATOR_METHODS {
4141
let mut arg_tys = Vec::with_capacity(method.inputs.len());
42-
for ty in method.inputs.iter() {
43-
match *ty {
42+
for input in method.inputs.iter() {
43+
match input.ty {
4444
AllocatorTy::Layout => {
4545
arg_tys.push(usize_ty); // size
4646
arg_tys.push(usize_ty); // align

0 commit comments

Comments
 (0)