Fix backwards-incompatibilities of regex crate

This commit is contained in:
Matthias Beyer 2017-01-30 10:01:13 +01:00
parent b59fcdffcd
commit 0e01a1ef4e

View file

@ -1182,13 +1182,13 @@ impl Entry {
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");
Ok(Entry {
location: try!(loc.into_storeid()),
header: try!(EntryHeader::parse(header)),
content: content.into(),
header: try!(EntryHeader::parse(header.as_str())),
content: String::from(content),
})
}