Extract primitive types to separate file
This commit is contained in:
parent
d105d959fa
commit
54ffb7a70a
11 changed files with 146 additions and 139 deletions
|
|
@ -2,7 +2,8 @@ use std::collections::HashMap;
|
|||
|
||||
use chrono::NaiveDate;
|
||||
|
||||
use crate::files::commands::{BirthdaySpec, Command, Done, Note, Span, Spec, Statement, Task};
|
||||
use crate::files::commands::{BirthdaySpec, Command, Done, Note, Spec, Statement, Task};
|
||||
use crate::files::primitives::Span;
|
||||
use crate::files::SourcedCommand;
|
||||
|
||||
use super::date::Dates;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
use chrono::NaiveDate;
|
||||
|
||||
use crate::files::commands::{self, Command, Spanned, Time};
|
||||
use crate::files::commands::{self, Command};
|
||||
use crate::files::primitives::{Spanned, Time};
|
||||
|
||||
use super::super::command::CommandState;
|
||||
use super::super::date::Dates;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
use crate::files::commands::{self, Expr, Spanned, Time, Var};
|
||||
use crate::files::commands::{self, Expr, Var};
|
||||
use crate::files::primitives::{Spanned, Time};
|
||||
|
||||
use super::super::command::CommandState;
|
||||
use super::super::delta::{Delta, DeltaStep};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
use chrono::NaiveDate;
|
||||
|
||||
use crate::files::commands::{DoneDate, Time};
|
||||
use crate::files::commands::DoneDate;
|
||||
use crate::files::primitives::Time;
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
struct Times {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@ use std::cmp::Ordering;
|
|||
|
||||
use chrono::{Datelike, Duration, NaiveDate};
|
||||
|
||||
use crate::files::commands::{self, Span, Spanned, Time, Weekday};
|
||||
use crate::files::commands;
|
||||
use crate::files::primitives::{Span, Spanned, Time, Weekday};
|
||||
|
||||
use super::{util, Error, Result};
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ use std::result;
|
|||
|
||||
use chrono::NaiveDate;
|
||||
|
||||
use crate::files::commands::{Span, Time};
|
||||
use crate::files::primitives::{Span, Time};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum Error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue