1
1
use crate :: action:: Action ;
2
2
use crate :: content:: custom_phase_actions:: {
3
- CustomPhaseEvent , CustomPhaseEventAction , CustomPhaseEventType ,
4
- CustomPhasePaymentRequest , CustomPhaseRequest ,
3
+ CustomPhaseEvent , CustomPhaseEventAction , CustomPhaseEventType , CustomPhasePaymentRequest ,
4
+ CustomPhaseRequest ,
5
5
} ;
6
6
use crate :: resource_pile:: ResourcePile ;
7
7
use crate :: {
@@ -90,7 +90,9 @@ pub(crate) trait AbilityInitializerSetup: Sized {
90
90
+ Clone ,
91
91
) -> Self
92
92
where
93
- E : Fn ( & mut PlayerEvents ) -> & mut EventMut < Game , usize , CustomPhaseEventType > + ' static + Clone ,
93
+ E : Fn ( & mut PlayerEvents ) -> & mut EventMut < Game , usize , CustomPhaseEventType >
94
+ + ' static
95
+ + Clone ,
94
96
{
95
97
let origin = self . get_key ( ) ;
96
98
self . add_player_event_listener (
@@ -138,7 +140,7 @@ pub(crate) trait AbilityInitializerSetup: Sized {
138
140
)
139
141
}
140
142
141
- #[ allow( irrefutable_let_patterns) ]
143
+ #[ allow( irrefutable_let_patterns) ]
142
144
fn add_payment_request_listener < E > (
143
145
self ,
144
146
event : E ,
@@ -147,7 +149,9 @@ pub(crate) trait AbilityInitializerSetup: Sized {
147
149
gain_reward : impl Fn ( & mut Game , usize , & str , & Vec < ResourcePile > ) + ' static + Clone ,
148
150
) -> Self
149
151
where
150
- E : Fn ( & mut PlayerEvents ) -> & mut EventMut < Game , usize , CustomPhaseEventType > + ' static + Clone ,
152
+ E : Fn ( & mut PlayerEvents ) -> & mut EventMut < Game , usize , CustomPhaseEventType >
153
+ + ' static
154
+ + Clone ,
151
155
{
152
156
self . add_state_change_event_listener (
153
157
event,
0 commit comments