Use single quotes here

This commit is contained in:
Matthias Beyer 2018-04-24 21:10:43 +02:00
parent 44521a7c8c
commit 6f5590713a

View file

@ -46,7 +46,7 @@ pub fn entry_buffer_to_header_content(buf: &str) -> Result<(Value, String)> {
let mut content = String::new();
let mut header_consumed = false;
let mut iter = buf.split("\n").skip(1).peekable(); // the first line is "---"
let mut iter = buf.split('\n').skip(1).peekable(); // the first line is "---"
while let Some(line) = iter.next() {
if line == "---" && !header_consumed {