From 0e01a1ef4eba5dba03a5b7d19889aa3b767217b4 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 30 Jan 2017 10:01:13 +0100 Subject: [PATCH] Fix backwards-incompatibilities of regex crate --- libimagstore/src/store.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libimagstore/src/store.rs b/libimagstore/src/store.rs index 97655c70..de9988d9 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -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), }) }