Fix: Parser::write() can get reference tuple
This commit is contained in:
parent
0212fb1929
commit
8145b21404
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue