style(srv): correct clippy recos

This commit is contained in:
Edouard Vanbelle
2026-05-12 00:34:04 +02:00
parent b4d4056a15
commit 1afacb65cd
2 changed files with 6 additions and 4 deletions
+5 -3
View File
@@ -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 '{:?}'",