From 1afacb65cda778d4a533727f60b1366f16fb28ed Mon Sep 17 00:00:00 2001 From: Edouard Vanbelle Date: Tue, 12 May 2026 00:34:04 +0200 Subject: [PATCH] style(srv): correct clippy recos --- src/application/services/batch_operations.rs | 2 +- src/application/services/folder_service.rs | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/application/services/batch_operations.rs b/src/application/services/batch_operations.rs index 1fb58a3b..4d161272 100644 --- a/src/application/services/batch_operations.rs +++ b/src/application/services/batch_operations.rs @@ -12,8 +12,8 @@ use tracing::info; use crate::application::dtos::file_dto::FileDto; use crate::application::dtos::folder_dto::{FolderDto, MoveFolderDto}; use crate::application::ports::file_ports::{FileManagementUseCase, FileRetrievalUseCase}; -use crate::application::ports::storage_ports::CopyFolderTreeResult; use crate::application::ports::inbound::FolderUseCase; +use crate::application::ports::storage_ports::CopyFolderTreeResult; use crate::application::ports::trash_ports::TrashUseCase; use crate::application::services::file_management_service::FileManagementService; use crate::application::services::file_retrieval_service::FileRetrievalService; diff --git a/src/application/services/folder_service.rs b/src/application/services/folder_service.rs index fab1141a..c2169367 100644 --- a/src/application/services/folder_service.rs +++ b/src/application/services/folder_service.rs @@ -463,9 +463,11 @@ impl FolderUseCase for FolderService { } // Verify the destination exists and is owned by the caller - let parent = self.folder_storage.get_folder(parent_id).await.map_err(|_| { - DomainError::not_found("Folder", parent_id) - })?; + let parent = self + .folder_storage + .get_folder(parent_id) + .await + .map_err(|_| DomainError::not_found("Folder", parent_id))?; if parent.owner_id() != Some(caller_id) { tracing::warn!( "move_folder: user '{}' attempted to move into folder '{}' owned by '{:?}'",