diff options
| author | Mason Reed <mason@vector35.com> | 2025-06-16 14:44:37 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-07-02 01:56:53 -0400 |
| commit | b53423da93809d71389127c41739247917688f37 (patch) | |
| tree | 1701636c3af6645b646466273488482298e89e22 /rust/src/architecture.rs | |
| parent | e665b12a11983b4999565313ba30370ca8a9f481 (diff) | |
[Rust] Make `CoreArchitecture::from_raw` public
Need this for WARP FFI
Diffstat (limited to 'rust/src/architecture.rs')
| -rw-r--r-- | rust/src/architecture.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 } } |
