Merge pull request #144 from matthiasbeyer/libimagstore/add-missing-pub

Fix: Add missing "pub" on Entry functions
This commit is contained in:
Matthias Beyer 2016-01-24 20:29:11 +01:00
commit 4a08eed700
1 changed files with 3 additions and 3 deletions

View File

@ -377,7 +377,7 @@ pub struct Entry {
impl Entry { impl Entry {
fn new(loc: StoreId) -> Entry { pub fn new(loc: StoreId) -> Entry {
Entry { Entry {
location: loc, location: loc,
header: EntryHeader::new(), header: EntryHeader::new(),
@ -385,7 +385,7 @@ impl Entry {
} }
} }
fn from_file(loc: StoreId, file: &mut File) -> Result<Entry> { pub fn from_file(loc: StoreId, file: &mut File) -> Result<Entry> {
let text = { let text = {
use std::io::Read; use std::io::Read;
let mut s = String::new(); let mut s = String::new();
@ -395,7 +395,7 @@ impl Entry {
Self::from_str(loc, &text[..]) Self::from_str(loc, &text[..])
} }
fn from_str(loc: StoreId, s: &str) -> Result<Entry> { pub fn from_str(loc: StoreId, s: &str) -> Result<Entry> {
let re = Regex::new(r"(?smx) let re = Regex::new(r"(?smx)
^---$ ^---$
(?P<header>.*) # Header (?P<header>.*) # Header