Auto merge of #10928 - servo:warnings, r=mbrubeck

Fix some warnings

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10928)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-04-30 05:16:46 -07:00
commit 0f1a921ba6
5 changed files with 6 additions and 8 deletions

View file

@ -2021,8 +2021,7 @@ impl Fragment {
return false
}
let length = first_unscanned_text.text.len();
if length != 0 && first_unscanned_text.text.char_at_reverse(length) == '\n' {
if first_unscanned_text.text.ends_with('\n') {
return false
}