summaryrefslogtreecommitdiff
path: root/rust/examples
diff options
context:
space:
mode:
Diffstat (limited to 'rust/examples')
-rw-r--r--rust/examples/workflow.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/examples/workflow.rs b/rust/examples/workflow.rs
index 49560579..db0bf599 100644
--- a/rust/examples/workflow.rs
+++ b/rust/examples/workflow.rs
@@ -52,7 +52,7 @@ pub fn main() {
binaryninja::headless::Session::new().expect("Failed to initialize session");
println!("Registering workflow...");
- let old_meta_workflow = Workflow::instance("core.function.metaAnalysis");
+ let old_meta_workflow = Workflow::get("core.function.metaAnalysis");
let meta_workflow = old_meta_workflow.clone_to("core.function.metaAnalysis");
let activity = Activity::new_with_action(RUST_ACTIVITY_CONFIG, example_activity);
meta_workflow.register_activity(&activity).unwrap();