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; }