diff --git a/src/parser.rs b/src/parser.rs index fe13e19..1f289e8 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -119,7 +119,7 @@ impl<'a, T: Iterator> Parser<'a, T> { self.state = TAG; } } else { - self.content.push_char(ch); + self.content.push(ch); } self.bump(); } @@ -137,18 +137,18 @@ impl<'a, T: Iterator> Parser<'a, T> { // so far to the string. self.state = TEXT; self.not_otag(); - self.content.push_char(ch); + self.content.push(ch); } self.bump(); } TAG => { if self.content.is_empty() && ch == '{' { curly_brace_tag = true; - self.content.push_char(ch); + self.content.push(ch); self.bump(); } else if curly_brace_tag && ch == '}' { curly_brace_tag = false; - self.content.push_char(ch); + self.content.push(ch); self.bump(); } else if ch == self.ctag_chars[0] { if self.ctag_chars.len() > 1 { @@ -160,7 +160,7 @@ impl<'a, T: Iterator> Parser<'a, T> { self.state = TEXT; } } else { - self.content.push_char(ch); + self.content.push(ch); self.bump(); } } @@ -172,7 +172,7 @@ impl<'a, T: Iterator> Parser<'a, T> { } else { self.state = TAG; self.not_ctag(); - self.content.push_char(ch); + self.content.push(ch); self.bump(); } } else { @@ -494,7 +494,7 @@ impl<'a, T: Iterator> Parser<'a, T> { if !(i < self.tag_position) { break } - self.content.push_char(*ch); + self.content.push(*ch); } } @@ -503,7 +503,7 @@ impl<'a, T: Iterator> Parser<'a, T> { if !(i < self.tag_position) { break } - self.content.push_char(*ch); + self.content.push(*ch); } }