Fix some warnings

This commit is contained in:
Simon Sapin 2018-12-26 10:58:50 +01:00
parent be69f9c3e6
commit be2218a134
7 changed files with 10 additions and 10 deletions

View file

@ -692,7 +692,7 @@ impl<'a> Iterator for TemplateAreasTokenizer<'a> {
type Item = Result<Option<&'a str>, ()>;
fn next(&mut self) -> Option<Self::Item> {
let rest = self.0.trim_left_matches(HTML_SPACE_CHARACTERS);
let rest = self.0.trim_start_matches(HTML_SPACE_CHARACTERS);
if rest.is_empty() {
return None;
}