From f1408931eb19f90dd96092ea26bea8d14f5ec804 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 18 May 2026 15:46:38 +0800 Subject: Move hook execution into the async and sync run methods --- mingling_core/src/program/exec.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'mingling_core/src/program/exec.rs') diff --git a/mingling_core/src/program/exec.rs b/mingling_core/src/program/exec.rs index 969b64e..1b756a1 100644 --- a/mingling_core/src/program/exec.rs +++ b/mingling_core/src/program/exec.rs @@ -16,7 +16,6 @@ where C: ProgramCollect, { // Run hooks - program.run_hook_on_begin(); program.run_hook_pre_dispatch(&program.args); #[cfg(not(feature = "dispatch_tree"))] @@ -108,7 +107,6 @@ where C: ProgramCollect, { // Run hooks - program.run_hook_on_begin(); program.run_hook_pre_dispatch(&program.args); #[cfg(not(feature = "dispatch_tree"))] -- cgit