FileHeaderParser::read() should get the string, not a ref to it
This commit is contained in:
parent
380d58a3c0
commit
bbefacd0a2
1 changed files with 1 additions and 1 deletions
|
@ -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>;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue