From bd1b6b8a1a75df296da5c7afa8107ba301c9cd8e Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sun, 13 Jul 2025 17:34:02 -0400 Subject: [Rust] Add `BinaryView::search` and friends --- plugins/svd/src/mapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/svd/src/mapper.rs b/plugins/svd/src/mapper.rs index 314fba76..8846c858 100644 --- a/plugins/svd/src/mapper.rs +++ b/plugins/svd/src/mapper.rs @@ -167,7 +167,7 @@ impl DeviceMapper { if self.settings.add_backing_regions { // Because adding a memory region will add a possibly large memory buffer in the BNDB, this // is optional. if a user disables this, they cannot write to the segment until they add a backing memory region. - let data_memory = DataBuffer::new(&vec![0; address_block.size as usize]).unwrap(); + let data_memory = DataBuffer::new(&vec![0; address_block.size as usize]); let added_memory = view.memory_map().add_data_memory_region( &block_name, block_addr, -- cgit v1.3.1