Skip to content

Commit 1bb3c0a

Browse files
committed
feat: Clippy hints
1 parent 1b6606b commit 1bb3c0a

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

components/data_proxy/src/caching/grpc_query_handler.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,10 +535,7 @@ impl GrpcQueryHandler {
535535
pub async fn remove_cors_from_project(&self, token: &str, obj: DPObject) -> Result<()> {
536536
let cors = match obj
537537
.key_values
538-
.iter()
539-
.filter(|e| e.key == "app.aruna-storage.org/cors")
540-
.cloned()
541-
.next()
538+
.iter().find(|e| e.key == "app.aruna-storage.org/cors").cloned()
542539
{
543540
Some(cors) => cors,
544541
None => KeyValue {

components/data_proxy/src/data_backends/s3_backend.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ impl StorageBackend for S3Backend {
402402
self.check_and_create_bucket(target.bucket.clone()).await?;
403403
self.s3_client
404404
.copy_object()
405-
.copy_source(&[source.bucket, source.key].join("/"))
405+
.copy_source([source.bucket, source.key].join("/"))
406406
.bucket(target.bucket)
407407
.key(target.key)
408408
.send()

0 commit comments

Comments
 (0)