mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-10 10:31:29 -10:00
Attack swap: pass the clip closure by value (clippy)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
dfaa2864d5
commit
0d75e2e519
1 file changed
+1
-1
@@ -281,7 +281,7 @@ impl Game<'_> {
|
||||
.map(|hit| Vec3::new(hit.point[0], hit.point[1], hit.point[2]))
|
||||
};
|
||||
let movement = self.known_player_movement();
|
||||
let nearest = super::spear::hits_in_reach(&boxes, eye, look, movement, reach, &clip)
|
||||
let nearest = super::spear::hits_in_reach(&boxes, eye, look, movement, reach, clip)
|
||||
.into_iter()
|
||||
.map(|(i, at)| (i, eye.distance_squared(at).sqrt()))
|
||||
.reduce(|a, b| if b.1 < a.1 { b } else { a });
|
||||
|
||||
Reference in new issue
Block a user