Use single quotes here
This commit is contained in:
parent
44521a7c8c
commit
6f5590713a
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue