Skip to content

Commit

Permalink
Make published optional
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcornu committed Oct 20, 2024
1 parent 2d5fa9b commit f452250
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion weather-lib/src/environment_canada/weather_feed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ pub struct Entry {
pub links: Vec<Link>,
pub category: Category,
pub updated: String,
pub published: String,
// Environment Canada recently started adding a "Notice"
// entry without a `<published>` tag.
pub published: Option<String>,
}

#[derive(Deserialize, Debug, Clone)]
Expand Down

0 comments on commit f452250

Please sign in to comment.