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.

Remove wrong assertion

Kirill Bulatovd8ce333cf8e3
diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs
index 364c3cadaf6..21feea2b408 100644
--- a/crates/workspace/src/workspace.rs
+++ b/crates/workspace/src/workspace.rs
@@ -974,9 +974,8 @@ impl Workspace {
let timestamp = entry.timestamp;
match history.entry(project_path) {
hash_map::Entry::Occupied(mut entry) => {
- let (old_fs_path, old_timestamp) = entry.get();
+ let (_, old_timestamp) = entry.get();
if &timestamp > old_timestamp {
- assert_eq!(&fs_path, old_fs_path, "Inconsistent nav history");
entry.insert((fs_path, timestamp));
}
}