From cea0b70a51d73c9eda7b2cf83451ca328182f0a8 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sat, 26 Feb 2022 11:37:00 +0100 Subject: fix the Trip type (and make it Display) it's not as nice as i'd like, but whatever --- src/onboard/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/onboard/mod.rs') diff --git a/src/onboard/mod.rs b/src/onboard/mod.rs index 56bd144..b6717e8 100644 --- a/src/onboard/mod.rs +++ b/src/onboard/mod.rs @@ -1,5 +1,6 @@ use crate::traits::IsStation; use crate::travelynx::TrainRef; +use crate::types::Trip; use serde::de::DeserializeOwned; pub mod iceportal; @@ -47,9 +48,7 @@ pub trait OnBoardInfo { fn get_train_ref(&self) -> TrainRef; - fn stops<'a>( - &'a self - ) -> Box + 'a>; + fn stops<'a>(&'a self) -> Trip<'a>; } fn get_request(uri: &str) -> Result -- cgit v1.2.3