Fix: Parser::write() can get reference tuple

This commit is contained in:
Matthias Beyer 2015-12-28 00:29:45 +01:00
parent 0212fb1929
commit 8145b21404
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ impl<HP: FileHeaderParser> Parser<HP> {
Ok((h_parseres, data.unwrap_or(String::new()))) Ok((h_parseres, data.unwrap_or(String::new())))
} }
pub fn write(&self, tpl : (FileHeaderData, String)) -> Result<String, ParserError> { pub fn write(&self, tpl : (&FileHeaderData, &String)) -> Result<String, ParserError> {
debug!("Parsing internal datastructure to String"); debug!("Parsing internal datastructure to String");
let (header, data) = tpl; let (header, data) = tpl;
let h_text = try!(self.headerp.write(&header)); let h_text = try!(self.headerp.write(&header));