From eb7a52bf4bd3b19c22f2eadda444ab045c674fe3 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Mon, 3 May 2021 18:45:19 -0400 Subject: Rust API : Better headless support; Introducing `binaryninja::open_view` and `binaryninja::open_view_with_options`, updated init/shutdown, script example, more setting support, and misc fixes --- rust/src/rc.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'rust/src/rc.rs') diff --git a/rust/src/rc.rs b/rust/src/rc.rs index 9264e3bd..7c5d610f 100644 --- a/rust/src/rc.rs +++ b/rust/src/rc.rs @@ -163,10 +163,7 @@ where unsafe fn wrap_raw(raw: &'a Self::Raw, context: &'a Self::Context) -> Self::Wrapped; } -pub struct Array

-where - P: CoreOwnedArrayProvider, -{ +pub struct Array { contents: *mut P::Raw, count: usize, context: P::Context, @@ -189,8 +186,8 @@ impl Array

{ pub(crate) unsafe fn new(raw: *mut P::Raw, count: usize, context: P::Context) -> Self { Self { contents: raw, - count: count, - context: context, + count, + context, } } -- cgit v1.3.1