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 --- rust/src/architecture.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'rust/src/architecture.rs') diff --git a/rust/src/architecture.rs b/rust/src/architecture.rs index d226230c..6b33b6bb 100644 --- a/rust/src/architecture.rs +++ b/rust/src/architecture.rs @@ -1828,10 +1828,7 @@ impl Architecture for CoreArchitecture { fn assemble(&self, code: &str, addr: u64) -> Result, String> { let code = CString::new(code).map_err(|_| "Invalid encoding in code string".to_string())?; - let result = match DataBuffer::new(&[]) { - Ok(result) => result, - Err(_) => return Err("Result buffer allocation failed".to_string()), - }; + let result = DataBuffer::new(&[]); // TODO: This is actually a list of errors. let mut error_raw: *mut c_char = std::ptr::null_mut(); let res = unsafe { -- cgit v1.3.1