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:
@@ -245,7 +245,7 @@ pub trait FileRetrievalUseCase: Send + Sync + 'static {
|
||||
let all = self.list_files_batch(folder_id, offset, limit).await?;
|
||||
Ok(all
|
||||
.into_iter()
|
||||
.filter(|f| f.owner_id.as_deref().map_or(false, |o| o == owner_id))
|
||||
.filter(|f| f.owner_id.as_deref().is_some_and(|o| o == owner_id))
|
||||
.collect())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ pub trait FileReadPort: Send + Sync + 'static {
|
||||
let all = self.list_files(folder_id).await?;
|
||||
Ok(all
|
||||
.into_iter()
|
||||
.filter(|f| f.owner_id().map_or(false, |o| o == owner_id))
|
||||
.filter(|f| f.owner_id().is_some_and(|o| o == owner_id))
|
||||
.collect())
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ pub trait FileReadPort: Send + Sync + 'static {
|
||||
let all = self.list_files_batch(folder_id, offset, limit).await?;
|
||||
Ok(all
|
||||
.into_iter()
|
||||
.filter(|f| f.owner_id().map_or(false, |o| o == owner_id))
|
||||
.filter(|f| f.owner_id().is_some_and(|o| o == owner_id))
|
||||
.collect())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user