diff --git a/zed/src/worktree.rs b/zed/src/worktree.rs index 3666abd4c46b18781599d8269ba469aa182a26c1..35034cb4c646c4c90ce984a6867fb969d0409d7a 100644 --- a/zed/src/worktree.rs +++ b/zed/src/worktree.rs @@ -1917,8 +1917,9 @@ impl File { /// Returns the last component of this handle's absolute path. If this handle refers to the root /// of its worktree, then this method will return the name of the worktree itself. pub fn file_name<'a>(&'a self, cx: &'a AppContext) -> Option { - dbg!(self.path.file_name()) - .or_else(|| Some(OsStr::new(dbg!(self.worktree.read(cx).root_name())))) + self.path + .file_name() + .or_else(|| Some(OsStr::new(self.worktree.read(cx).root_name()))) .map(Into::into) }