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.