mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Initial clippy fixes as discussed in #587
This commit is contained in:
@ -268,12 +268,7 @@ where
|
||||
let satisfied = |pos: &Vec3<i32>| pos == &end;
|
||||
|
||||
let mut new_astar = match astar.take() {
|
||||
None => Astar::new(
|
||||
20_000,
|
||||
start,
|
||||
heuristic.clone(),
|
||||
DefaultHashBuilder::default(),
|
||||
),
|
||||
None => Astar::new(20_000, start, heuristic, DefaultHashBuilder::default()),
|
||||
Some(astar) => astar,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user