diff --git a/src/replace.rs b/src/replace.rs index aa63c95..c805276 100644 --- a/src/replace.rs +++ b/src/replace.rs @@ -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) }