diff options
Diffstat (limited to 'rust/src/workflow.rs')
| -rw-r--r-- | rust/src/workflow.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/workflow.rs b/rust/src/workflow.rs index 68cd3e18..e95beb48 100644 --- a/rust/src/workflow.rs +++ b/rust/src/workflow.rs @@ -565,7 +565,7 @@ impl Workflow { &self, activity: A, sequential: Option<bool>, - ) -> Option<FlowGraph> { + ) -> Option<Ref<FlowGraph>> { let sequential = sequential.unwrap_or(false); let activity_name = activity.into_bytes_with_nul(); let graph = unsafe { @@ -578,7 +578,7 @@ impl Workflow { if graph.is_null() { return None; } - Some(unsafe { FlowGraph::from_raw(graph) }) + Some(unsafe { FlowGraph::ref_from_raw(graph) }) } /// Not yet implemented. |
