File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments