summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2024-10-22 19:14:19 -0400
committerMason Reed <mason@vector35.com>2024-10-22 19:14:19 -0400
commitbca07d7b8e68485b6cf5a866c567fc153847af52 (patch)
tree2c1071768342a04013555b3776f9322ebf2063fc /rust/src
parent98ce1a275442b436f504576a2e026683684fbd7c (diff)
Update rust default workflow instance
Should fix the warning being printed in the log
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/workflow.rs4
1 files changed, 3 insertions, 1 deletions
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(