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/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'rust/src/lib.rs') diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 61016c0f..61358e6c 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -312,11 +312,11 @@ pub fn open_view_with_options>( _ => { if let (Some(universal_view_type), Some(options)) = (universal_view_type, &options) { if options.contains_key("files.universal.architecturePreference") { - let settings = universal_view_type + universal_view_type .load_settings_for_data(view.as_ref()) .map_err(|_| { "Could not load settings for universal view_data".to_string() - })?; + })? // let arch_list = // settings.get_string("loader.universal.architectures", None, None); @@ -331,8 +331,6 @@ pub fn open_view_with_options>( // let settings = settings::Settings::new(BNGetUniqueIdentifierString()); // settings.deserialize_schema(arch_entry[0]['loadSchema']); - - settings } else { match view_type.load_settings_for_data(view.as_ref()) { Ok(settings) => settings, -- cgit v1.3.1