use alloc::vec instead of std::vec

This commit is contained in:
tigregalis 2023-05-11 17:14:52 +08:00
parent 053efa77b6
commit 5ab509ebaa

View file

@ -6,7 +6,7 @@ use unicode_bidi::{bidi_class, BidiClass, BidiInfo, ParagraphInfo};
/// It is equivalent to [`core::str::Lines`] but follows `unicode-bidi` behaviour.
pub struct BidiParagraphs<'text> {
text: &'text str,
info: std::vec::IntoIter<ParagraphInfo>,
info: alloc::vec::IntoIter<ParagraphInfo>,
}
impl<'text> BidiParagraphs<'text> {