update deps
This commit is contained in:
@ -33,7 +33,9 @@ async fn main() -> io::Result<()> {
|
||||
|
||||
let birth_date: BirthDate = env::var("BIRTH_DATE")
|
||||
.map(|s| BirthDate(s.parse().expect("failed to parse BIRTH_DATE")))
|
||||
.unwrap_or_else(|_| BirthDate(NaiveDate::from_ymd(2000, 1, 1)));
|
||||
.unwrap_or_else(|_| {
|
||||
BirthDate(NaiveDate::from_ymd_opt(2000, 1, 1).expect("Date is correct"))
|
||||
});
|
||||
|
||||
let mut sled = sled::open(db_path)?;
|
||||
match sled.insert(
|
||||
|
||||
Reference in New Issue
Block a user