diff options
| author | geno nullfree nullfree.geno@gmail.com <nullfree.geno@gmail.com> | 2023-01-20 14:23:08 -0500 |
|---|---|---|
| committer | Kyle Martin <krm504@nyu.edu> | 2023-01-25 14:14:09 -0500 |
| commit | 7d504eb0f6892c8fd4b95699d920aa12d0536261 (patch) | |
| tree | 6bf7e606ac3c36c29b33a62cae403d1141e9ca8e /rust/src | |
| parent | 80bca9fcb82dde1db4efc0a5d383a982ff7dab44 (diff) | |
Fix rust headless BinaryView not loading correctly
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 81520189..5fbb8239 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -231,7 +231,7 @@ pub fn open_view<F: AsRef<Path>>(filename: F) -> Result<rc::Ref<binaryview::Bina let bv = custombinaryview::BinaryViewType::list_valid_types_for(&view) .iter() .find_map(|available_view| { - if available_view.name().as_ref() == b"Raw" { + if available_view.name().as_str() == "Raw" { None } else if is_bndb { Some(view.file().get_view_of_type(available_view.name()).unwrap()) |
