Satisfy clippy
This commit is contained in:
parent
4bdfc34706
commit
c612bd35ad
4 changed files with 6 additions and 14 deletions
|
|
@ -101,7 +101,7 @@ fn dijkstra(
|
|||
page_idx: link.to,
|
||||
};
|
||||
|
||||
let mut target_page = data.page_mut(link.to);
|
||||
let target_page = data.page_mut(link.to);
|
||||
if next.cost < target_page.data.cost {
|
||||
target_page.data.cost = next.cost;
|
||||
target_page.data.prev_page_idx = page_idx;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue