This commit is contained in:
Antonio Scandurra 2023-10-23 16:38:28 +02:00
parent efbf0c828d
commit 7832120a4c
5 changed files with 80 additions and 76 deletions

View file

@ -310,7 +310,7 @@ impl Worktree {
ignores_by_parent_abs_path: Default::default(),
git_repositories: Default::default(),
snapshot: Snapshot {
id: WorktreeId::from_usize(cx.entity_id()),
id: WorktreeId::from_usize(cx.entity_id().as_u64() as usize),
abs_path: abs_path.clone(),
root_name: root_name.clone(),
root_char_bag: root_name.chars().map(|c| c.to_ascii_lowercase()).collect(),