From 8862696926173104957729683832591438161557 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Fri, 27 Dec 2024 16:14:46 -0500 Subject: Render Layers --- rust/src/function.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rust/src/function.rs') diff --git a/rust/src/function.rs b/rust/src/function.rs index d4eb1d53..63ebc82e 100644 --- a/rust/src/function.rs +++ b/rust/src/function.rs @@ -128,7 +128,7 @@ impl Iterator for NativeBlockIter { } } -#[derive(Clone)] +#[derive(Clone, Debug, PartialEq, Eq)] pub struct NativeBlock { _priv: (), } @@ -2346,7 +2346,7 @@ impl Function { /// Flow graph of unresolved stack adjustments pub fn unresolved_stack_adjustment_graph(&self) -> Option> { let graph = unsafe { BNGetUnresolvedStackAdjustmentGraph(self.handle) }; - (!graph.is_null()).then(|| unsafe { Ref::new(FlowGraph::from_raw(graph)) }) + (!graph.is_null()).then(|| unsafe { FlowGraph::ref_from_raw(graph) }) } pub fn create_graph( @@ -2358,7 +2358,7 @@ impl Function { let raw_view_type = FunctionViewType::into_raw(view_type); let result = unsafe { BNCreateFunctionGraph(self.handle, raw_view_type, settings_raw) }; FunctionViewType::free_raw(raw_view_type); - unsafe { Ref::new(FlowGraph::from_raw(result)) } + unsafe { FlowGraph::ref_from_raw(result) } } pub fn parent_components(&self) -> Array { -- cgit v1.3.1