mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Fix some warnings
This commit is contained in:
parent
9770e3c1e3
commit
756a34e93d
5 changed files with 6 additions and 8 deletions
|
@ -2020,8 +2020,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