Skip to content

Commit

Permalink
Replace into_iter() by iter() for the (possible) upcoming breaking ch…
Browse files Browse the repository at this point in the history
…ange

See rust-lang/rust#66145 for details.
  • Loading branch information
est31 committed Nov 8, 2019
1 parent a41e154 commit e15a9ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mehlon/collide.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 54,7 @@ pub fn collide(player_pos :Vector3<f32>, pos :Vector3<isize>) -> Option<Vector3<
}
}
const LIMIT :f32 = 0.04;
let num_smaller = [ox, oy, oz].into_iter().filter(|v| v <= &&LIMIT).count();
let num_smaller = [ox, oy, oz].iter().filter(|v| *v <= &&LIMIT).count();
let xnormal = Vector3::new(f(player_pos.x, pos.x), 0.0, 0.0);
let ynormal = Vector3::new(0.0, f(player_pos.y, pos.y), 0.0);
let znormal = Vector3::new(0.0, 0.0, f(player_pos.z, pos.z));
Expand Down

0 comments on commit e15a9ac

Please sign in to comment.