Fix backwards-incompatibilities of regex crate
This commit is contained in:
parent
b59fcdffcd
commit
0e01a1ef4e
1 changed files with 3 additions and 3 deletions
|
@ -1182,13 +1182,13 @@ impl Entry {
|
||||||
Some(s) => s
|
Some(s) => s
|
||||||
};
|
};
|
||||||
|
|
||||||
let content = matches.name("content").unwrap_or("");
|
let content = matches.name("content").map(|r| r.as_str()).unwrap_or("");
|
||||||
|
|
||||||
debug!("Header and content found. Yay! Building Entry object now");
|
debug!("Header and content found. Yay! Building Entry object now");
|
||||||
Ok(Entry {
|
Ok(Entry {
|
||||||
location: try!(loc.into_storeid()),
|
location: try!(loc.into_storeid()),
|
||||||
header: try!(EntryHeader::parse(header)),
|
header: try!(EntryHeader::parse(header.as_str())),
|
||||||
content: content.into(),
|
content: String::from(content),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue