Fix: Add missing "pub" on Entry functions
This commit is contained in:
parent
4af7d3178a
commit
d24f661778
1 changed files with 3 additions and 3 deletions
|
@ -347,7 +347,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(),
|
||||||
|
@ -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 = {
|
let text = {
|
||||||
use std::io::Read;
|
use std::io::Read;
|
||||||
let mut s = String::new();
|
let mut s = String::new();
|
||||||
|
@ -365,7 +365,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
|
||||||
|
|
Loading…
Reference in a new issue