Byron/trash-rs

Use references in `restore_all` and `purge_all`

Aberta

#54 aberto em 17 de jul. de 2022

 (12 comentários) (0 reação) (0 responsável)Rust (40 forks)auto 404
enhancementgood first issuehelp wanted

Métricas do repositório

Stars
 (247 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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 .

Guia do colaborador