From 39c62ef4b8ed03ca442ae5730b98346710d0a3c4 Mon Sep 17 00:00:00 2001 From: endeavor Date: Thu, 10 Jun 2021 13:37:08 -0400 Subject: formatting --- rust/src/callingconvention.rs | 13 ++++++++----- rust/src/types.rs | 4 ++-- 2 files changed, 10 insertions(+), 7 deletions(-) (limited to 'rust/src') diff --git a/rust/src/callingconvention.rs b/rust/src/callingconvention.rs index a4bd599b..fb7fd3e1 100644 --- a/rust/src/callingconvention.rs +++ b/rust/src/callingconvention.rs @@ -353,11 +353,14 @@ where where C: CallingConventionBase, { - ffi_wrap!("CallingConvention::are_argument_registers_used_for_var_args", unsafe { - let ctxt = &*(ctxt as *mut CustomCallingConventionContext); + ffi_wrap!( + "CallingConvention::are_argument_registers_used_for_var_args", + unsafe { + let ctxt = &*(ctxt as *mut CustomCallingConventionContext); - ctxt.cc.are_argument_registers_used_for_var_args() - }) + ctxt.cc.are_argument_registers_used_for_var_args() + } + ) } let name = name.as_bytes_with_nul(); @@ -687,7 +690,7 @@ impl ConventionBuilder { reg!(global_pointer_reg); reg_list!(implicitly_defined_registers); - + bool_arg!(are_argument_registers_used_for_var_args); pub fn register(self, name: &str) -> Ref> { diff --git a/rust/src/types.rs b/rust/src/types.rs index 9faf446e..dd14d556 100644 --- a/rust/src/types.rs +++ b/rust/src/types.rs @@ -1228,7 +1228,7 @@ impl StructureBuilder { t: T, name: S, offset: u64, - overwrite_existing: bool + overwrite_existing: bool, ) -> &'a mut Self { let name = name.as_bytes_with_nul(); unsafe { @@ -1237,7 +1237,7 @@ impl StructureBuilder { &t.into().into(), name.as_ref().as_ptr() as _, offset, - overwrite_existing + overwrite_existing, ); } -- cgit v1.3.1