From bca07d7b8e68485b6cf5a866c567fc153847af52 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 22 Oct 2024 19:14:19 -0400 Subject: Update rust default workflow instance Should fix the warning being printed in the log --- rust/src/workflow.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rust/src') diff --git a/rust/src/workflow.rs b/rust/src/workflow.rs index 7172e779..b3a17a77 100644 --- a/rust/src/workflow.rs +++ b/rust/src/workflow.rs @@ -288,7 +288,9 @@ impl Workflow { let name = name.into_bytes_with_nul(); let activity = root_activity.activity_name(); // I can't think of a single reason as to why we should let users pass a workflow handle into this. - let placeholder_workflow = Workflow::instance(""); + // TODO: [Default] Workflow::Instance() called without specifying a workflow name. Defaulting to 'core.function.defaultAnalysis'. + // To prevent warning being emitted we default to `core.function.defaultAnalysis`. + let placeholder_workflow = Workflow::instance("core.function.defaultAnalysis"); unsafe { Self::from_raw( NonNull::new(BNWorkflowClone( -- cgit v1.3.1