bump to 0.21.1 (#2702)

* bump to 0.21.1

* bump trash version
This commit is contained in:
Jonathan Turner
2020-10-26 21:10:06 +13:00
committed by GitHub
parent 6951fb440c
commit a6fdee4a51
31 changed files with 205 additions and 205 deletions

View File

@ -615,7 +615,7 @@ impl Shell for FilesystemShell {
.map(|val| val.is_true())
.unwrap_or(false);
result = if _trash.item || (rm_always_trash && !_permanent.item) {
trash::remove(&f).map_err(|e: trash::Error| {
trash::delete(&f).map_err(|e: trash::Error| {
Error::new(ErrorKind::Other, format!("{:?}", e))
})
} else if metadata.is_file() {