Skip to content

Commit ffeb200

Browse files
committed
fix issues
1 parent d29a598 commit ffeb200

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/game/src/world/index.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ fn load_world_graph_data() -> anyhow::Result<WorldGraphData> {
257257
let mut link_to_route_id = HashMap::new();
258258
let mut used_route_ids = std::collections::HashSet::new();
259259

260-
for (link_name, _) in &world_graph.links {
260+
for link_name in world_graph.links.keys() {
261261
if link_name.starts_with('L') && link_name.len() >= 2 {
262262
if let Ok(route_num) = link_name[1..].parse::<u16>() {
263263
if route_num == 0 {
@@ -274,7 +274,7 @@ fn load_world_graph_data() -> anyhow::Result<WorldGraphData> {
274274
used_route_ids.insert(route_num);
275275

276276
let route_id = RouteId(route_num);
277-
link_to_route_id.insert(link_name, route_id);
277+
link_to_route_id.insert(link_name.clone(), route_id);
278278
} else {
279279
return Err(anyhow::anyhow!("invalid link name format: {}", link_name));
280280
}

0 commit comments

Comments
 (0)