Make eval compile again

This commit is contained in:
Joscha 2021-12-04 21:42:45 +01:00
parent d8782fa28a
commit de1f4a303f
4 changed files with 79 additions and 257 deletions

23
src/eval/error.rs Normal file
View file

@ -0,0 +1,23 @@
use std::result;
use chrono::NaiveDate;
use crate::files::commands::{Span, Time};
#[derive(Debug)]
pub enum Error {
DeltaInvalidStep {
span: Span,
start: NaiveDate,
start_time: Option<Time>,
prev: NaiveDate,
prev_time: Option<Time>,
},
DeltaNoTime {
span: Span,
start: NaiveDate,
prev: NaiveDate,
},
}
pub type Result<T> = result::Result<T, Error>;