mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix some warnings
This commit is contained in:
parent
be69f9c3e6
commit
be2218a134
7 changed files with 10 additions and 10 deletions
|
@ -778,7 +778,7 @@ impl ToCss for FontLanguageOverride {
|
|||
} else {
|
||||
unsafe { str::from_utf8_unchecked(&buf) }
|
||||
};
|
||||
slice.trim_right().to_css(dest)
|
||||
slice.trim_end().to_css(dest)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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