Byron/trash-rs

Use references in `restore_all` and `purge_all`

开放

#54 创建于 2022年7月17日

 (12 条评论) (0 个反应) (0 位负责人)Rust (40 个派生)auto 404
enhancementgood first issuehelp wanted

仓库指标

星标
 (247 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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 .

贡献者指南