From 42db6a440bfcf0242587f4ba95b719359cc777e0 Mon Sep 17 00:00:00 2001 From: lyken Date: Tue, 20 Aug 2024 15:59:42 +0800 Subject: [PATCH] cargo fmt nac3artiq/src/codegen.rs --- nac3artiq/src/codegen.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nac3artiq/src/codegen.rs b/nac3artiq/src/codegen.rs index 6a83d30a..68c62321 100644 --- a/nac3artiq/src/codegen.rs +++ b/nac3artiq/src/codegen.rs @@ -486,8 +486,7 @@ fn format_rpc_arg<'ctx>( let buffer = ctx.builder.build_array_alloca(llvm_i8, buffer_size, "rpc.arg").unwrap(); let buffer = ArraySliceValue::from_ptr_val(buffer, buffer_size, Some("rpc.arg")); - let ppdata = - generator.gen_var_alloc(ctx, llvm_arg_ty.element_type(), None).unwrap(); + let ppdata = generator.gen_var_alloc(ctx, llvm_arg_ty.element_type(), None).unwrap(); ctx.builder.build_store(ppdata, llvm_arg.data().base_ptr(ctx, generator)).unwrap(); call_memcpy_generic(