diff --git a/src/helpers/json.rs b/src/helpers/json.rs index bfa23f7..40921ec 100644 --- a/src/helpers/json.rs +++ b/src/helpers/json.rs @@ -30,7 +30,7 @@ pub fn from_reader(mut r: R) -> Result { pub fn from_file>(path: P) -> Result { let path = path.as_ref(); let file = File::open(path)?; - Ok(from_reader(file)?) + from_reader(file) } /// Attempts to serialize a Data struct to a String