Skip to content

Commit

Permalink
Make current ride optional as well, oops
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinrouillard committed Oct 20, 2024
1 parent fad6d19 commit ed96d92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/boosted/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug)]
pub struct BoostedStats {
pub current_ride: CurrentRideStats,
pub current_ride: Option<CurrentRideStats>,
pub latest_ride: RideStats,
pub stats: Stats,
}
Expand Down
2 changes: 1 addition & 1 deletion src/structs/boosted.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<CurrentRideStats>,
pub latest_ride: RideStats,
pub stats: Stats,
}

0 comments on commit ed96d92

Please sign in to comment.