mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-26 17:15:52 +00:00
Simplify method return type
This commit is contained in:
parent
31926784f3
commit
8954b5eb19
@ -9,7 +9,7 @@ pub struct Model {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Model {
|
impl Model {
|
||||||
pub fn from_path(path: PathBuf) -> Result<Self, io::Error> {
|
pub fn from_path(path: PathBuf) -> io::Result<Self> {
|
||||||
let name = {
|
let name = {
|
||||||
// Can't panic. It only would, if the path ends with "..", and we
|
// Can't panic. It only would, if the path ends with "..", and we
|
||||||
// are canonicalizing it here to prevent that.
|
// are canonicalizing it here to prevent that.
|
||||||
|
Loading…
Reference in New Issue
Block a user