From b53423da93809d71389127c41739247917688f37 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Mon, 16 Jun 2025 14:44:37 -0400 Subject: [Rust] Make `CoreArchitecture::from_raw` public Need this for WARP FFI --- rust/src/architecture.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/src') diff --git a/rust/src/architecture.rs b/rust/src/architecture.rs index 3344b2af..d226230c 100644 --- a/rust/src/architecture.rs +++ b/rust/src/architecture.rs @@ -1403,7 +1403,7 @@ pub struct CoreArchitecture { impl CoreArchitecture { // TODO: Leave a note on architecture lifetimes. Specifically that they are never freed. - pub(crate) unsafe fn from_raw(handle: *mut BNArchitecture) -> Self { + pub unsafe fn from_raw(handle: *mut BNArchitecture) -> Self { debug_assert!(!handle.is_null()); CoreArchitecture { handle } } -- cgit v1.3.1