summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/lib.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/rust/src/lib.rs b/rust/src/lib.rs
index 10719f9a..084d8a96 100644
--- a/rust/src/lib.rs
+++ b/rust/src/lib.rs
@@ -252,11 +252,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 {
BNLoadBinaryView(