diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 5f23a9f6aa..a31131e040 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -95,8 +95,6 @@ use crate::progress::{NoProgressCallback, ProgressCallback}; use crate::string::raw_to_string; use binary_view::BinaryView; use binaryninjacore_sys::*; -use metadata::Metadata; -use metadata::MetadataType; use rc::Ref; use std::cmp; use std::collections::HashMap; @@ -200,11 +198,7 @@ where .to_bytes_with_nul() .to_vec() } else { - Metadata::new_of_type(MetadataType::KeyValueDataType) - .get_json_string() - .ok()? - .as_ref() - .to_vec() + "{}".to_cstr().to_bytes_with_nul().to_vec() }; let handle = unsafe { BNLoadFilename(