Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/vfs/src/vfs_path.rs')
-rw-r--r--crates/vfs/src/vfs_path.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/vfs/src/vfs_path.rs b/crates/vfs/src/vfs_path.rs
index cce8595cc4..c35b7f229f 100644
--- a/crates/vfs/src/vfs_path.rs
+++ b/crates/vfs/src/vfs_path.rs
@@ -97,11 +97,7 @@ impl VfsPath {
/// Returns [`None`] if the path is a root or prefix.
pub fn parent(&self) -> Option<VfsPath> {
let mut parent = self.clone();
- if parent.pop() {
- Some(parent)
- } else {
- None
- }
+ if parent.pop() { Some(parent) } else { None }
}
/// Returns `self`'s base name and file extension.