Skip to content

Commit

Permalink
fixed deprecate chrono::naive::MAX_DATE
Browse files Browse the repository at this point in the history
  • Loading branch information
David Quintanel committed Aug 18, 2022
1 parent 61eb740 commit d81a988
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/validity_period.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ mod tests {
mod set_validity_period {
use super::super::*;
use crate::objects::{Dataset, Date, ValidityPeriod};
use chrono::naive::{MAX_DATE, MIN_DATE};
use chrono::NaiveDate;
use pretty_assertions::assert_eq;

#[test]
Expand All @@ -86,8 +86,8 @@ mod tests {
let mut dataset = Dataset {
id: String::from("dataset_id"),
contributor_id: String::from("contributor_id"),
start_date: MAX_DATE,
end_date: MIN_DATE,
start_date: NaiveDate::MAX,
end_date: NaiveDate::MIN,
..Default::default()
};
let service_validity_period = ValidityPeriod {
Expand Down

0 comments on commit d81a988

Please sign in to comment.