Unbox Vec<>
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user