Fix: Add missing "pub" on Entry functions

This commit is contained in:
Matthias Beyer 2016-01-24 20:19:09 +01:00
parent 4af7d3178a
commit d24f661778
1 changed files with 3 additions and 3 deletions

View File

@ -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<Entry> {
pub fn from_file(loc: StoreId, file: &mut File) -> Result<Entry> {
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<Entry> {
pub fn from_str(loc: StoreId, s: &str) -> Result<Entry> {
let re = Regex::new(r"(?smx)
^---$
(?P<header>.*) # Header