diff options
Diffstat (limited to 'arch/msp430/src')
| -rw-r--r-- | arch/msp430/src/lib.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/msp430/src/lib.rs b/arch/msp430/src/lib.rs index 892e617d..0655cc85 100644 --- a/arch/msp430/src/lib.rs +++ b/arch/msp430/src/lib.rs @@ -1,9 +1,6 @@ use binaryninja::{ - add_optional_plugin_dependency, - architecture::ArchitectureExt, - calling_convention, - custom_binary_view::{BinaryViewType, BinaryViewTypeExt}, - Endianness, + add_optional_plugin_dependency, architecture::ArchitectureExt, binary_view::BinaryViewType, + calling_convention, Endianness, }; mod architecture; @@ -45,7 +42,7 @@ pub extern "C" fn CorePluginInit() -> bool { arch.set_default_calling_convention(&default); - if let Ok(bvt) = BinaryViewType::by_name("ELF") { + if let Some(bvt) = BinaryViewType::by_name("ELF") { bvt.register_arch(105, Endianness::LittleEndian, arch); } |
