From 1a4b3f9747e496ba1b750dbbc16ccf542ce188e6 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 28 Oct 2015 20:41:27 +0100 Subject: [PATCH] FileDataParser::read() should return Result<> --- src/module/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module/mod.rs b/src/module/mod.rs index 95dbd515..93056718 100644 --- a/src/module/mod.rs +++ b/src/module/mod.rs @@ -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; fn write(&self, data: &FileData) -> Result; }