FileDataParser::read() should return Result<>

This commit is contained in:
Matthias Beyer 2015-10-28 20:41:27 +01:00
parent bbefacd0a2
commit 1a4b3f9747

View file

@ -121,7 +121,7 @@ pub mod file {
pub trait FileDataParser : Sized {
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>;
}