Make eval compile again
This commit is contained in:
parent
d8782fa28a
commit
de1f4a303f
4 changed files with 79 additions and 257 deletions
23
src/eval/error.rs
Normal file
23
src/eval/error.rs
Normal 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>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue