Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix project panel test helper

Max Brunsfeld9ad1ebf387e0
diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs
index 57934c4adb4..16876106f44 100644
--- a/crates/project_panel/src/project_panel.rs
+++ b/crates/project_panel/src/project_panel.rs
@@ -2371,7 +2371,7 @@ mod tests {
}
let indent = " ".repeat(details.depth);
- let icon = if matches!(details.kind, EntryKind::Dir | EntryKind::PendingDir) {
+ let icon = if details.kind.is_dir() {
if details.is_expanded {
"v "
} else {