Unbox Vec<>

This commit is contained in:
2026-05-10 08:05:55 +01:00
parent 1ecf31b6fa
commit 10dee971b9
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ use crate::gtfs::{loader::load_gtfs, structs::{Arrival, Gtfs, Preferences}};
impl Gtfs {
pub fn get_next_arrivals_for(&self, target_datetime: &DateTime<Local>) -> Box<Vec<Arrival<'_>>> {
pub fn get_next_arrivals_for(&self, target_datetime: &DateTime<Local>) -> Vec<Arrival<'_>> {
let naive_target = target_datetime.naive_local();
let target_date = naive_target.date();
@@ -80,7 +80,7 @@ impl Gtfs {
}
debug!("Found {} arrivals", arrivals.len());
return Box::from(arrivals);
return arrivals;
}