FileDataParser::read() should return Result<>
This commit is contained in:
parent
bbefacd0a2
commit
1a4b3f9747
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ pub mod file {
|
||||||
|
|
||||||
pub trait FileDataParser : Sized {
|
pub trait FileDataParser : Sized {
|
||||||
fn new() -> FileDataParser;
|
fn new() -> FileDataParser;
|
||||||
fn read(&self, string: String) -> FileData;
|
fn read(&self, string: String) -> Result<FileData, ParserError>;
|
||||||
fn write(&self, data: &FileData) -> Result<String, ParserError>;
|
fn write(&self, data: &FileData) -> Result<String, ParserError>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue