diff --git a/src/context/mod.rs b/src/context/mod.rs index 3f33a26..175f67e 100644 --- a/src/context/mod.rs +++ b/src/context/mod.rs @@ -1,3 +1,7 @@ +use self::parser_context::Context; +use crate::error::Res; +use crate::parser::OrgSource; + mod exiting; mod list; mod parser_context; diff --git a/src/parser/mod.rs b/src/parser/mod.rs index b4452bc..bc3648d 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -43,3 +43,4 @@ mod timestamp; mod token; mod util; pub use document::document; +pub use org_source::OrgSource; diff --git a/src/types/document.rs b/src/types/document.rs index fd08dc3..faafbc2 100644 --- a/src/types/document.rs +++ b/src/types/document.rs @@ -1,3 +1,5 @@ +use super::Source; + #[derive(Debug)] pub struct Document<'s> { pub source: &'s str, diff --git a/src/types/greater_element.rs b/src/types/greater_element.rs index 2a6b1f6..2aed91e 100644 --- a/src/types/greater_element.rs +++ b/src/types/greater_element.rs @@ -1,6 +1,7 @@ use super::element::Element; use super::lesser_element::TableCell; use super::Object; +use super::Source; #[derive(Debug)] pub struct PlainList<'s> { diff --git a/src/types/lesser_element.rs b/src/types/lesser_element.rs index f87278d..33f6529 100644 --- a/src/types/lesser_element.rs +++ b/src/types/lesser_element.rs @@ -1,5 +1,6 @@ use super::object::Object; use super::PlainText; +use super::Source; #[derive(Debug)] pub struct Paragraph<'s> { diff --git a/src/types/object.rs b/src/types/object.rs index 1234c67..7e5da11 100644 --- a/src/types/object.rs +++ b/src/types/object.rs @@ -1,3 +1,5 @@ +use super::Source; + #[derive(Debug, PartialEq)] pub enum Object<'s> { Bold(Bold<'s>),