We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88a79c6 commit 3f92261Copy full SHA for 3f92261
src/allocator.rs
@@ -39,8 +39,8 @@ fn codegen_inner(
39
if kind == AllocatorKind::Default {
40
for method in ALLOCATOR_METHODS {
41
let mut arg_tys = Vec::with_capacity(method.inputs.len());
42
- for ty in method.inputs.iter() {
43
- match *ty {
+ for input in method.inputs.iter() {
+ match input.ty {
44
AllocatorTy::Layout => {
45
arg_tys.push(usize_ty); // size
46
arg_tys.push(usize_ty); // align
0 commit comments