Bump trash-rs to fix panic for non-Unicode paths

See: https://github.com/Byron/trash-rs/issues/105

Some operating systems or file systems support non-Unicode paths (e.g.
Linux and the BSDs). `trash-rs` panicked when trashing or listing the
trash with non-UTF8 names.

For COSMIC Files specifically, the program panics on start if the trash
contains files with invalid Unicode names. It also panics when
attempting to trash files with said names.

To replicate:
```sh
touch ''$'\250'
gio trash ''$'\250'

cosmic-files
```
This commit is contained in:
Josh Megnauth 2024-06-18 22:41:44 -04:00 committed by Jeremy Soller
parent 553c11deb3
commit cd135fc248
3 changed files with 28 additions and 6 deletions

View file

@ -31,7 +31,7 @@ regex = "1"
serde = { version = "1", features = ["serde_derive"] }
shlex = { version = "1.3" }
tokio = { version = "1", features = ["sync"] }
trash = "4.1.0"
trash = "5.0"
xdg = { version = "2.5.2", optional = true }
xdg-mime = "0.3"
url = "2.5"