From fd860a975b84da9a79abfa247787e6adbd5ea34c Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 5 Jul 2022 13:03:09 +0200 Subject: Refactor code style --- src/parser.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/parser.rs') diff --git a/src/parser.rs b/src/parser.rs index 89a0de1..32689d6 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -3,7 +3,8 @@ use std::collections::HashSet; // To do: this should start with `containers`, when they’re done. use crate::content::flow::flow; -use crate::tokenizer::{as_codes, Code, Event, Point}; +use crate::tokenizer::{Code, Event, Point}; +use crate::util::codes::parse as parse_codes; /// Information needed, in all content types, when parsing markdown. /// @@ -22,7 +23,7 @@ pub struct ParseState { /// Passes the codes back so the compiler can access the source. pub fn parse(value: &str) -> (Vec, Vec) { let mut parse_state = ParseState { - codes: as_codes(value), + codes: parse_codes(value), definitions: HashSet::new(), }; -- cgit