From 4fddb71dba9dd176d0a5e968bfcb225c4fd3c915 Mon Sep 17 00:00:00 2001 From: CodeSandwich Date: Tue, 23 Jul 2019 21:15:52 +0200 Subject: [PATCH] Replace mem::uninitialized with mem::zeroed --- macros/src/header_builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/src/header_builder.rs b/macros/src/header_builder.rs index 16f69af..87bd010 100644 --- a/macros/src/header_builder.rs +++ b/macros/src/header_builder.rs @@ -120,7 +120,7 @@ fn write_extract_args(f: &mut Formatter, fn_args: &Punctuated) -> R } write!(f, "unsafe {{ (")?; for fn_arg_name in iter_fn_arg_names(fn_args) { - write!(f, "{}::mem::replace(&mut *(&{} as *const _ as *mut _), {}::mem::uninitialized()), ", + write!(f, "{}::mem::replace(&mut *(&{} as *const _ as *mut _), {}::mem::zeroed()), ", STD_CRATE_NAME, fn_arg_name, STD_CRATE_NAME)?; } write!(f, ") }}")