Make Parser::write() public
This commit is contained in:
parent
c2135b5c6c
commit
616e0b789b
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ impl<'a, HP> Parser<HP> where
|
||||||
Ok((h_parseres, data.unwrap_or(String::new())))
|
Ok((h_parseres, data.unwrap_or(String::new())))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn write(&self, tpl : (FileHeaderData, String)) -> Result<String, ParserError>
|
pub fn write(&self, tpl : (FileHeaderData, String)) -> Result<String, ParserError>
|
||||||
{
|
{
|
||||||
let (header, data) = tpl;
|
let (header, data) = tpl;
|
||||||
let h_text = try!(self.headerp.write(&header));
|
let h_text = try!(self.headerp.write(&header));
|
||||||
|
|
Loading…
Reference in a new issue