diff options
| author | KyleMiles <krm504@nyu.edu> | 2023-05-10 10:18:38 -0400 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2023-05-10 10:18:38 -0400 |
| commit | 6acc3ec38633967065bf7978cab8c3b04140d031 (patch) | |
| tree | 274533cc05fafbe57027cee4e9ec1df1441bb920 /rust/src/custombinaryview.rs | |
| parent | 99c7a280ae771073b6a36e958426d6f2c7d29462 (diff) | |
Rust API : Remove some unused type parameters (this should remove a little bit of codegen)...but will likely break custom BV plugins
Diffstat (limited to 'rust/src/custombinaryview.rs')
| -rw-r--r-- | rust/src/custombinaryview.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/rust/src/custombinaryview.rs b/rust/src/custombinaryview.rs index 90673fb7..aa4eef27 100644 --- a/rust/src/custombinaryview.rs +++ b/rust/src/custombinaryview.rs @@ -93,10 +93,7 @@ where }) } - extern "C" fn cb_parse<T>(_ctxt: *mut c_void, _data: *mut BNBinaryView) -> *mut BNBinaryView - where - T: CustomBinaryViewType, - { + extern "C" fn cb_parse(_ctxt: *mut c_void, _data: *mut BNBinaryView) -> *mut BNBinaryView { ffi_wrap!("BinaryViewTypeBase::parse", ptr::null_mut()) } @@ -127,7 +124,7 @@ where let mut bn_obj = BNCustomBinaryViewType { context: ctxt as *mut _, create: Some(cb_create::<T>), - parse: Some(cb_parse::<T>), + parse: Some(cb_parse), isValidForData: Some(cb_valid::<T>), isDeprecated: Some(cb_deprecated::<T>), getLoadSettingsForData: Some(cb_load_settings::<T>), |
