Make Parser::write() public

This commit is contained in:
Matthias Beyer 2015-11-24 10:27:34 +01:00
parent c2135b5c6c
commit 616e0b789b
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ impl<'a, HP> Parser<HP> where
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 h_text = try!(self.headerp.write(&header));