From 6abac39eaa4c87c9d715decee83c9bd5219f6da0 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Tue, 13 Jul 2021 17:47:54 +0200 Subject: [PATCH] Remove stray logging statements Co-Authored-By: Nathan Sobo --- zed/src/worktree.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) }