diff options
| author | endeavor <endeavor@rainbowsandpwnies.com> | 2021-06-10 13:37:08 -0400 |
|---|---|---|
| committer | Kyle Martin <krm504@nyu.edu> | 2021-06-15 13:15:22 -0400 |
| commit | 39c62ef4b8ed03ca442ae5730b98346710d0a3c4 (patch) | |
| tree | 89e03584cf3cddc95867c9faeec8765a2c8f04b4 /rust/src | |
| parent | bec24a5aeed8249e396b420364c5db886427e13c (diff) | |
formatting
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/callingconvention.rs | 13 | ||||
| -rw-r--r-- | rust/src/types.rs | 4 |
2 files changed, 10 insertions, 7 deletions
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<C>); + ffi_wrap!( + "CallingConvention::are_argument_registers_used_for_var_args", + unsafe { + let ctxt = &*(ctxt as *mut CustomCallingConventionContext<C>); - 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<A: Architecture> ConventionBuilder<A> { 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<CallingConvention<A>> { 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, ); } |
