mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix some warnings
This commit is contained in:
parent
be69f9c3e6
commit
be2218a134
7 changed files with 10 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue