diff options
Diffstat (limited to 'src/construct')
-rw-r--r-- | src/construct/attention.rs | 1 | ||||
-rw-r--r-- | src/construct/document.rs | 1 | ||||
-rw-r--r-- | src/construct/heading_atx.rs | 1 | ||||
-rw-r--r-- | src/construct/heading_setext.rs | 1 | ||||
-rw-r--r-- | src/construct/label_end.rs | 1 | ||||
-rw-r--r-- | src/construct/list_item.rs | 1 | ||||
-rw-r--r-- | src/construct/paragraph.rs | 1 | ||||
-rw-r--r-- | src/construct/partial_data.rs | 1 | ||||
-rw-r--r-- | src/construct/partial_whitespace.rs | 1 |
9 files changed, 9 insertions, 0 deletions
diff --git a/src/construct/attention.rs b/src/construct/attention.rs index 21407b7..8df0f61 100644 --- a/src/construct/attention.rs +++ b/src/construct/attention.rs @@ -64,6 +64,7 @@ use crate::state::{Name as StateName, State}; use crate::tokenizer::Tokenizer; use crate::unicode::PUNCTUATION; use crate::util::slice::Slice; +use alloc::{string::String, vec, vec::Vec}; /// Character code kinds. #[derive(Debug, PartialEq)] diff --git a/src/construct/document.rs b/src/construct/document.rs index 2cc170d..4ef6acc 100644 --- a/src/construct/document.rs +++ b/src/construct/document.rs @@ -13,6 +13,7 @@ use crate::state::{Name as StateName, State}; use crate::subtokenize::divide_events; use crate::tokenizer::{Container, ContainerState, Tokenizer}; use crate::util::skip; +use alloc::{boxed::Box, vec::Vec}; /// Phases where we can exit containers. #[derive(Debug, PartialEq)] diff --git a/src/construct/heading_atx.rs b/src/construct/heading_atx.rs index 960ae32..4ff0143 100644 --- a/src/construct/heading_atx.rs +++ b/src/construct/heading_atx.rs @@ -68,6 +68,7 @@ use crate::event::{Content, Event, Kind, Link, Name}; use crate::resolve::Name as ResolveName; use crate::state::{Name as StateName, State}; use crate::tokenizer::Tokenizer; +use alloc::vec; /// Start of a heading (atx). /// diff --git a/src/construct/heading_setext.rs b/src/construct/heading_setext.rs index bad781c..3adeb38 100644 --- a/src/construct/heading_setext.rs +++ b/src/construct/heading_setext.rs @@ -76,6 +76,7 @@ use crate::resolve::Name as ResolveName; use crate::state::{Name as StateName, State}; use crate::tokenizer::Tokenizer; use crate::util::skip::opt_back as skip_opt_back; +use alloc::vec; /// At start of heading (setext) underline. /// diff --git a/src/construct/label_end.rs b/src/construct/label_end.rs index 5e31444..41f16d7 100644 --- a/src/construct/label_end.rs +++ b/src/construct/label_end.rs @@ -169,6 +169,7 @@ use crate::util::{ skip, slice::{Position, Slice}, }; +use alloc::vec; /// Start of label end. /// diff --git a/src/construct/list_item.rs b/src/construct/list_item.rs index 3e632fb..13c287a 100644 --- a/src/construct/list_item.rs +++ b/src/construct/list_item.rs @@ -68,6 +68,7 @@ use crate::util::{ skip, slice::{Position, Slice}, }; +use alloc::{vec, vec::Vec}; /// Start of list item. /// diff --git a/src/construct/paragraph.rs b/src/construct/paragraph.rs index 0ddd0c4..9e20643 100644 --- a/src/construct/paragraph.rs +++ b/src/construct/paragraph.rs @@ -44,6 +44,7 @@ use crate::event::{Content, Kind, Link, Name}; use crate::resolve::Name as ResolveName; use crate::state::{Name as StateName, State}; use crate::tokenizer::Tokenizer; +use alloc::vec; /// Before paragraph. /// diff --git a/src/construct/partial_data.rs b/src/construct/partial_data.rs index 19f5f3b..bc6d7f4 100644 --- a/src/construct/partial_data.rs +++ b/src/construct/partial_data.rs @@ -10,6 +10,7 @@ use crate::event::{Kind, Name}; use crate::resolve::Name as ResolveName; use crate::state::{Name as StateName, State}; use crate::tokenizer::Tokenizer; +use alloc::vec; /// At beginning of data. /// diff --git a/src/construct/partial_whitespace.rs b/src/construct/partial_whitespace.rs index faaff73..707107d 100644 --- a/src/construct/partial_whitespace.rs +++ b/src/construct/partial_whitespace.rs @@ -61,6 +61,7 @@ use crate::constant::HARD_BREAK_PREFIX_SIZE_MIN; use crate::event::{Event, Kind, Name}; use crate::tokenizer::Tokenizer; use crate::util::slice::{Position, Slice}; +use alloc::vec; /// Resolve whitespace. pub fn resolve_whitespace(tokenizer: &mut Tokenizer, hard_break: bool, trim_whole: bool) { |