Skip to content

Commit 64aae45

Browse files
committed
[Rust] Fix bad closure lifetime in Activity::new_with_action
Fixes #7472
1 parent d85cf3c commit 64aae45

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rust/src/workflow/activity.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ impl Activity {
6161

6262
pub fn new_with_action<F>(config: impl AsConfig, mut action: F) -> Ref<Self>
6363
where
64-
F: FnMut(&AnalysisContext),
64+
F: Fn(&AnalysisContext) + Send + Sync + 'static,
6565
{
66-
unsafe extern "C" fn cb_action<F: FnMut(&AnalysisContext)>(
66+
unsafe extern "C" fn cb_action<F: Fn(&AnalysisContext)>(
6767
ctxt: *mut c_void,
6868
analysis: *mut BNAnalysisContext,
6969
) {

0 commit comments

Comments
 (0)