Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/project-model/src/manifest_path.rs')
| -rw-r--r-- | crates/project-model/src/manifest_path.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/project-model/src/manifest_path.rs b/crates/project-model/src/manifest_path.rs index 73a4e6e121..4f43be2f38 100644 --- a/crates/project-model/src/manifest_path.rs +++ b/crates/project-model/src/manifest_path.rs @@ -21,11 +21,7 @@ impl TryFrom<AbsPathBuf> for ManifestPath { type Error = AbsPathBuf; fn try_from(file: AbsPathBuf) -> Result<Self, Self::Error> { - if file.parent().is_none() { - Err(file) - } else { - Ok(ManifestPath { file }) - } + if file.parent().is_none() { Err(file) } else { Ok(ManifestPath { file }) } } } |