FileHeaderParser::read() should get the string, not a ref to it

This commit is contained in:
Matthias Beyer 2015-10-28 20:40:07 +01:00
parent 380d58a3c0
commit bbefacd0a2

View file

@ -110,7 +110,7 @@ pub mod file {
pub trait FileHeaderParser : Sized {
fn new(spec: &FileHeaderSpec) -> Self;
fn read(&self, string: &String) -> Result<FileHeaderData, ParserError>;
fn read(&self, string: String) -> Result<FileHeaderData, ParserError>;
fn write(&self, data: &FileHeaderData) -> Result<String, ParserError>;
}