From 8557a5e88a42b15970baa57c6cf2b56d068a4314 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Mon, 9 Jun 2025 23:29:00 -0400 Subject: [Rust] Expose `BinaryView::from_raw` Needed this for WARP plugin --- rust/src/binary_view.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/src/binary_view.rs') diff --git a/rust/src/binary_view.rs b/rust/src/binary_view.rs index c4aaf32d..394dda16 100644 --- a/rust/src/binary_view.rs +++ b/rust/src/binary_view.rs @@ -1968,7 +1968,7 @@ pub struct BinaryView { } impl BinaryView { - pub(crate) unsafe fn from_raw(handle: *mut BNBinaryView) -> Self { + pub unsafe fn from_raw(handle: *mut BNBinaryView) -> Self { debug_assert!(!handle.is_null()); Self { handle } } -- cgit v1.3.1