fix: resolve clippy warnings for --all-features CI build
Update share_service test impl to match upstream trait changes (requester_id params, verify_shared_link_password returns ShareDto). Fix map_or, collapsible_if, dead_code, too_many_arguments warnings. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -272,7 +272,7 @@ impl TrashUseCase for TrashService {
|
||||
|
||||
// Ownership check — return NotFound (not Forbidden) to
|
||||
// prevent leaking whether the folder exists.
|
||||
if folder.owner_id().map_or(true, |o| o != user_id) {
|
||||
if folder.owner_id().is_none_or(|o| o != user_id) {
|
||||
return Err(DomainError::not_found(
|
||||
"Folder",
|
||||
format!("Folder not found: {}", item_id),
|
||||
|
||||
Reference in New Issue
Block a user