Make Parser::write() public

This commit is contained in:
Matthias Beyer 2015-11-24 10:27:34 +01:00
parent c2135b5c6c
commit 616e0b789b

View file

@ -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));