From 5d445d2708a020a31603539534df794b7431d763 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/toml.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/toml.rs b/src/helpers/toml.rs index 6f0151c..0e71639 100644 --- a/src/helpers/toml.rs +++ b/src/helpers/toml.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