From ed96d9230173884e7fea850a55906b8e5f1360cf Mon Sep 17 00:00:00 2001 From: Dustin Rouillard Date: Sun, 20 Oct 2024 16:44:05 -0600 Subject: [PATCH] Make current ride optional as well, oops --- src/services/boosted/structs.rs | 2 +- src/structs/boosted.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/boosted/structs.rs b/src/services/boosted/structs.rs index dcf72ea..a27f196 100644 --- a/src/services/boosted/structs.rs +++ b/src/services/boosted/structs.rs @@ -2,7 +2,7 @@ use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Debug)] pub struct BoostedStats { - pub current_ride: CurrentRideStats, + pub current_ride: Option, pub latest_ride: RideStats, pub stats: Stats, } diff --git a/src/structs/boosted.rs b/src/structs/boosted.rs index 9c23812..e6c7da5 100644 --- a/src/structs/boosted.rs +++ b/src/structs/boosted.rs @@ -9,7 +9,7 @@ use crate::services::boosted::structs::{ #[derive(Debug, Serialize, Deserialize)] pub struct BoostedRideUpdate { pub riding: bool, - pub current_ride: CurrentRideStats, + pub current_ride: Option, pub latest_ride: RideStats, pub stats: Stats, }