From 8954b5eb1925298d7a454e316371973a9b4bc93c Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 16 Mar 2022 14:32:56 +0100 Subject: [PATCH] Simplify method return type --- src/model.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model.rs b/src/model.rs index fe103d3bc..313d909a8 100644 --- a/src/model.rs +++ b/src/model.rs @@ -9,7 +9,7 @@ pub struct Model { } impl Model { - pub fn from_path(path: PathBuf) -> Result { + pub fn from_path(path: PathBuf) -> io::Result { let name = { // Can't panic. It only would, if the path ends with "..", and we // are canonicalizing it here to prevent that.