Fix some warnings

This commit is contained in:
Simon Sapin 2016-04-29 18:30:57 +02:00
parent 9770e3c1e3
commit 756a34e93d
5 changed files with 6 additions and 8 deletions

View file

@ -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
}