@@ -370,29 +370,15 @@ impl TemporalEventListener {
370370 self . event_bus . publish_workflow_event ( domain_event. clone ( ) ) ;
371371 return Ok ( String :: new ( ) ) ;
372372 }
373- WorkflowEvent :: WorkflowExecutionStarted { execution_id, .. } => {
374- execution_id. clone ( )
375- }
376- WorkflowEvent :: WorkflowStateEntered { execution_id, .. } => execution_id. clone ( ) ,
377- WorkflowEvent :: WorkflowStateExited { execution_id, .. } => execution_id. clone ( ) ,
378- WorkflowEvent :: WorkflowIterationStarted { execution_id, .. } => {
379- execution_id. clone ( )
380- }
381- WorkflowEvent :: WorkflowIterationCompleted { execution_id, .. } => {
382- execution_id. clone ( )
383- }
384- WorkflowEvent :: WorkflowIterationFailed { execution_id, .. } => {
385- execution_id. clone ( )
386- }
387- WorkflowEvent :: WorkflowExecutionCompleted { execution_id, .. } => {
388- execution_id. clone ( )
389- }
390- WorkflowEvent :: WorkflowExecutionFailed { execution_id, .. } => {
391- execution_id. clone ( )
392- }
393- WorkflowEvent :: WorkflowExecutionCancelled { execution_id, .. } => {
394- execution_id. clone ( )
395- }
373+ WorkflowEvent :: WorkflowExecutionStarted { execution_id, .. } => * execution_id,
374+ WorkflowEvent :: WorkflowStateEntered { execution_id, .. } => * execution_id,
375+ WorkflowEvent :: WorkflowStateExited { execution_id, .. } => * execution_id,
376+ WorkflowEvent :: WorkflowIterationStarted { execution_id, .. } => * execution_id,
377+ WorkflowEvent :: WorkflowIterationCompleted { execution_id, .. } => * execution_id,
378+ WorkflowEvent :: WorkflowIterationFailed { execution_id, .. } => * execution_id,
379+ WorkflowEvent :: WorkflowExecutionCompleted { execution_id, .. } => * execution_id,
380+ WorkflowEvent :: WorkflowExecutionFailed { execution_id, .. } => * execution_id,
381+ WorkflowEvent :: WorkflowExecutionCancelled { execution_id, .. } => * execution_id,
396382 } ;
397383
398384 let execution_id_str = execution_id_obj. 0 . to_string ( ) ;
0 commit comments