From 6acc3ec38633967065bf7978cab8c3b04140d031 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Wed, 10 May 2023 10:18:38 -0400 Subject: Rust API : Remove some unused type parameters (this should remove a little bit of codegen)...but will likely break custom BV plugins --- rust/src/custombinaryview.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'rust/src/custombinaryview.rs') 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(_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::), - parse: Some(cb_parse::), + parse: Some(cb_parse), isValidForData: Some(cb_valid::), isDeprecated: Some(cb_deprecated::), getLoadSettingsForData: Some(cb_load_settings::), -- cgit v1.3.1