From bb1ac27ea6c861f27da9fe724fce731f0692ce3e Mon Sep 17 00:00:00 2001 From: Nicholas Orlowsky Date: Sun, 19 Apr 2026 23:04:53 -0400 Subject: [PATCH] add clone --- web/src/services/gtfs_pull.rs | 2 +- web/templates/map.html | 48 ++++++++++++++++++----------------- 2 files changed, 26 insertions(+), 24 deletions(-) diff --git a/web/src/services/gtfs_pull.rs b/web/src/services/gtfs_pull.rs index b120ac8..bfebaea 100644 --- a/web/src/services/gtfs_pull.rs +++ b/web/src/services/gtfs_pull.rs @@ -554,7 +554,7 @@ impl GtfsPullService { .routes .get(&make_global_id!(prefix, trip.1.route_id)) .clone() { - Some(x) => x, + Some(x) => x.clone(), None => { warn!("No route found for trip {} (was looking for route {})", trip.1.id, trip.1.route_id); continue diff --git a/web/templates/map.html b/web/templates/map.html index d8b5380..003580b 100644 --- a/web/templates/map.html +++ b/web/templates/map.html @@ -1,36 +1,38 @@ + crossorigin=""> + crossorigin="">