Byron/trash-rs

Use references in `restore_all` and `purge_all`

Aperta

#54 aperta il 17 lug 2022

 (12 commenti) (0 reazioni) (0 assegnatari)Rust (40 fork)auto 404
enhancementgood first issuehelp wanted

Metriche repository

Star
 (247 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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 .

Guida contributor