From 81c8c59dcfdbb5049432f535e059dc5fef2c2ef4 Mon Sep 17 00:00:00 2001 From: overtrue Date: Sat, 5 Sep 2026 17:48:39 +0800 Subject: [PATCH] fix(app): drop a redundant match guard on the sse config lookup --- crates/ecstore/src/bucket/on_demand_migration/gcs.rs | 4 +++- rustfs/src/app/object/shared.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/ecstore/src/bucket/on_demand_migration/gcs.rs b/crates/ecstore/src/bucket/on_demand_migration/gcs.rs index 7774dfb54..707e1cc82 100644 --- a/crates/ecstore/src/bucket/on_demand_migration/gcs.rs +++ b/crates/ecstore/src/bucket/on_demand_migration/gcs.rs @@ -234,7 +234,9 @@ impl SourceBackend for GcsNativeSourceBackend { url.query_pairs_mut().append_pair("maxResults", "1"); let request = self.request(Method::GET, url, HeaderMap::new()).await?; let response = self.http.send(request, NO_ERROR_CODE_HEADER).await?; - read_text(response, MAX_JSON_BYTES).await.and_then(|body| parse_objects_list(&body))?; + read_text(response, MAX_JSON_BYTES) + .await + .and_then(|body| parse_objects_list(&body))?; Ok(()) } } diff --git a/rustfs/src/app/object/shared.rs b/rustfs/src/app/object/shared.rs index c35619edb..ffc9e7db2 100644 --- a/rustfs/src/app/object/shared.rs +++ b/rustfs/src/app/object/shared.rs @@ -309,7 +309,7 @@ fn classify_bucket_default_sse_lookup( ) -> S3Result> { match lookup { Ok(config) => Ok(Some(config)), - Err(err) if err == StorageError::ConfigNotFound => Ok(None), + Err(StorageError::ConfigNotFound) => Ok(None), Err(err) => { let api_error = ApiError::from(err); error!(