mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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:
commit
0f1a921ba6
5 changed files with 6 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue