Byron/trash-rs

Use references in `restore_all` and `purge_all`

Offen

#54 geöffnet am 17.07.2022

 (12 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (40 Forks)auto 404
enhancementgood first issuehelp wanted

Repository-Metriken

Stars
 (247 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

restore_all and purge_all should take references because they don't need the ownership of TrashItems. This could reduce cloning when calling the functions. restore_all might need an additional clone on a RestoreCollision error because there is remaining_items. My use case is specified in #53 .

Contributor Guide