From d24f66177844c269d8ed6ec2b94419cca7070bbc Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 24 Jan 2016 20:19:09 +0100 Subject: [PATCH] Fix: Add missing "pub" on Entry functions --- 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 fb222fc5..a8332ce3 100644 --- a/libimagstore/src/store.rs +++ b/libimagstore/src/store.rs @@ -347,7 +347,7 @@ pub struct Entry { impl Entry { - fn new(loc: StoreId) -> Entry { + pub fn new(loc: StoreId) -> Entry { Entry { location: loc, header: EntryHeader::new(), @@ -355,7 +355,7 @@ impl Entry { } } - fn from_file(loc: StoreId, file: &mut File) -> Result { + pub fn from_file(loc: StoreId, file: &mut File) -> Result { let text = { use std::io::Read; let mut s = String::new(); @@ -365,7 +365,7 @@ impl Entry { Self::from_str(loc, &text[..]) } - fn from_str(loc: StoreId, s: &str) -> Result { + pub fn from_str(loc: StoreId, s: &str) -> Result { let re = Regex::new(r"(?smx) ^---$ (?P
.*) # Header