From 88ba4c0894d494f92b6097c60162a48ecc16da28 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 29 Dec 2022 18:36:14 +0100 Subject: [PATCH] Fix clippy: Remove unnecessary Ok + ? operator Signed-off-by: Matthias Beyer --- src/helpers/json.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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