diff --git a/src/storage/parser.rs b/src/storage/parser.rs index 266f6a3d..a3bbf832 100644 --- a/src/storage/parser.rs +++ b/src/storage/parser.rs @@ -122,7 +122,7 @@ impl Parser { Ok((h_parseres, data.unwrap_or(String::new()))) } - pub fn write(&self, tpl : (FileHeaderData, String)) -> Result { + pub fn write(&self, tpl : (&FileHeaderData, &String)) -> Result { debug!("Parsing internal datastructure to String"); let (header, data) = tpl; let h_text = try!(self.headerp.write(&header));