@@ -448,7 +448,7 @@ impl WorldState {
448
448
}
449
449
450
450
pub fn occupying_affiliated_agent ( & self , at : Locale , team : Team ) -> Option < Agent > {
451
- for agent in Agent :: dramatis_personæ ( team) . into_iter ( ) {
451
+ for agent in Agent :: dramatis_personæ ( team) {
452
452
if self . agent_to_pinfield_ref ( agent) . query ( at) {
453
453
return Some ( agent) ;
454
454
}
@@ -642,7 +642,7 @@ impl WorldState {
642
642
let servant_agent = Agent :: new ( team, JobDescription :: Servant ) ;
643
643
let positional_chart: & Pinfield = self . agent_to_pinfield_ref ( servant_agent) ;
644
644
let mut premonitions = Vec :: new ( ) ;
645
- for start_locale in positional_chart. to_locales ( ) . into_iter ( ) {
645
+ for start_locale in positional_chart. to_locales ( ) {
646
646
// can move one locale if he's not blocked
647
647
let std_destination_maybe = start_locale. displace ( standard_offset) ;
648
648
if let Some ( destination_locale) = std_destination_maybe {
@@ -703,13 +703,13 @@ impl WorldState {
703
703
JobDescription :: Figurehead => FIGUREHEAD_MOVEMENT_TABLE ,
704
704
_ => moral_panic ! ( "non-ponylike agent passed to `ponylike_lookahead`" ) ,
705
705
} ;
706
- for start_locale in positional_chart. to_locales ( ) . into_iter ( ) {
706
+ for start_locale in positional_chart. to_locales ( ) {
707
707
let destinations = self . occupied_by ( agent. team )
708
708
. invert ( )
709
709
. intersection ( Pinfield ( movement_table[
710
710
start_locale. pindex ( ) as usize ] ) )
711
711
. to_locales ( ) ;
712
- for destination in destinations. into_iter ( ) {
712
+ for destination in destinations {
713
713
self . predict ( & mut premonitions,
714
714
Patch {
715
715
star : agent,
@@ -742,7 +742,7 @@ impl WorldState {
742
742
_ => moral_panic ! ( "non-princesslike agent passed to \
743
743
`princesslike_lookahead`") ,
744
744
} ;
745
- for start_locale in positional_chart. to_locales ( ) . into_iter ( ) {
745
+ for start_locale in positional_chart. to_locales ( ) {
746
746
for & offset in & offsets {
747
747
let mut venture = 1 ;
748
748
loop {
@@ -1350,7 +1350,7 @@ mod tests {
1350
1350
whence: Locale :: from_algebraic( "g2" . to_owned( ) ) ,
1351
1351
whither: Locale :: from_algebraic( "g4" . to_owned( ) ) } ,
1352
1352
] ;
1353
- for patch in fools_patchset. into_iter ( ) {
1353
+ for patch in fools_patchset {
1354
1354
world = world. careful_apply ( patch) . unwrap ( ) . tree ;
1355
1355
}
1356
1356
world
0 commit comments