# fs: Update trash crate version \(\#60899\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/d8ecc302c6a22485754788c877fc11b34fc15227)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: d8ecc302c6a22485754788c877fc11b34fc15227

Requested commit: d8ecc302c6a22485754788c877fc11b34fc15227

Commit: d8ecc302c6a22485754788c877fc11b34fc15227

Tree: 8a4e464ab2f3733e6ecb17d583aa8e97d4efb037

Author: Dino

Committer: GitHub

## Message

```
fs: Update trash crate version (#60899)

# Objective

Fix errors in Windows when trashing files from the Git Panel. Closes
#60716.

## Solution

The solution and discussion is available at
https://github.com/zed-industries/trash-rs/pull/3 , seeing as the fix
was fully done on the `trash` crate. Original discussion of this issue
can be found at https://github.com/zed-industries/zed/pull/59595 .

## Testing

Testing was performed manually on a Windows machine by updating Zed's
`fs` crate dependencies to point at the updated code and then building
from source and testing out the same exact path, namely:

1. Create a new untracked file
2. Trash the file from the Git Panel's context menu
3. Confirm that, after confirming that you wish to trash the file, the
file is trash and no error is shown

Since this whole trash-tracking logic was implemented in the context of
the project panel's undo system, I also confirmed that the changes in
the crate's code didn't affect trashing and restoring on Windows.

## Self-Review Checklist:

N/A

## Showcase

<details>
  <summary>Before</summary>


https://github.com/user-attachments/assets/120ab3ec-d631-4243-a21e-c510c27ed518
</details>

<details>
  <summary>After</summary>


https://github.com/user-attachments/assets/7ff1e373-b56d-431f-aad5-d4c5bb301e02
</details>

---

Release Notes:

- Fixed issue when trashing untracked files in Git Panel on Windows
```

## Parents

- [ad5763eba47a28a72110fa2d101496fba006342e](https://git.cafe/gitcafe/zed/commit/ad5763eba47a28a72110fa2d101496fba006342e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/d8ecc302c6a22485754788c877fc11b34fc15227?format=markdown)
