chore: cargo clippy

This commit is contained in:
James Liu 2024-11-04 15:08:54 -05:00
parent ba373e8697
commit c1b761a704
No known key found for this signature in database
GPG key ID: 4D83DC1EBB6E0DF5

View file

@ -133,7 +133,7 @@ impl Org {
) if level <= new_level
// non-last headline must ends with a newline
&& (headline.end() == self.document().end()
|| replace_with.ends_with(&['\n', '\r'])) =>
|| replace_with.ends_with(['\n', '\r'])) =>
{
self.replace_headline(headline, range, replace_with)
}