From 59af22390d3e05ed9aa03461a492e42c797d477c Mon Sep 17 00:00:00 2001 From: Dionisio Date: Thu, 12 Feb 2026 11:26:23 +0100 Subject: [PATCH] fix: restore missing match arms in trash_service restore_item The translation commit accidentally removed the match statement and opening arms (match item_result, Ok(Some(item)), match item.item_type) while keeping the body, causing a brace mismatch compilation error. --- src/application/services/trash_service.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/application/services/trash_service.rs b/src/application/services/trash_service.rs index ea52483e..524354b7 100644 --- a/src/application/services/trash_service.rs +++ b/src/application/services/trash_service.rs @@ -304,6 +304,16 @@ impl TrashUseCase for TrashService { }; // Get the trash item + info!("Retrieving trash item from repository: ID={}", trash_id); + let item_result = self.trash_repository.get_trash_item(&trash_uuid, &user_uuid).await; + + match item_result { + Ok(Some(item)) => { + info!("Found item in trash: ID={}, Type={:?}, OriginalID={}", + trash_id, item.item_type(), item.original_id()); + + // Restore based on type + match item.item_type() { TrashedItemType::File => { // Restore the file to its original location let file_id = item.original_id().to_string();