summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2026-01-29 13:04:16 -0500
committerJosh Ferrell <josh@vector35.com>2026-01-29 13:04:16 -0500
commitff58143ff7794d7251f9182294dd25bd4cbe15eb (patch)
treecb64eb75282b7e67ae59aa8d23d0f3e8c510a56e /rust
parent43bb35136369ef11f2ef1f62b36a80bccb4eb4be (diff)
[Rust API] Fix load_view_with_progress when options is None
Diffstat (limited to 'rust')
-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(