Fix warning

Nathan Sobo created

Change summary

zed/src/worktree.rs | 1 +
1 file changed, 1 insertion(+)

Detailed changes

zed/src/worktree.rs 🔗

@@ -166,6 +166,7 @@ impl Worktree {
         Ok(path)
     }
 
+    #[cfg(test)]
     fn inode_for_path(&self, path: impl AsRef<Path>) -> Option<u64> {
         let path = path.as_ref();
         self.root_inode().and_then(|mut inode| {