From 38cdbf3939f6daf9b2102edb0ae7aa37b15f8dad Mon Sep 17 00:00:00 2001 From: Zhengchao An Date: Fri, 3 Jul 2026 08:58:56 +0800 Subject: [PATCH] fix(ecstore): scope replication boundary etag import to test module (#4214) content_matches_by_etag is only used inside the #[cfg(test)] module, so the lib-scope import from #4211 fails cargo clippy -D warnings on every non-test build. Co-authored-by: Claude Fable 5 --- .../src/bucket/replication/replication_target_boundary.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ecstore/src/bucket/replication/replication_target_boundary.rs b/crates/ecstore/src/bucket/replication/replication_target_boundary.rs index 44fde7d21..6c7ced0b0 100644 --- a/crates/ecstore/src/bucket/replication/replication_target_boundary.rs +++ b/crates/ecstore/src/bucket/replication/replication_target_boundary.rs @@ -20,8 +20,7 @@ use aws_sdk_s3::operation::head_object::HeadObjectOutput; use aws_sdk_s3::types::{ObjectLockLegalHoldStatus, ObjectLockRetentionMode}; use http::HeaderMap; use rustfs_replication::{ - ReplicationSourceObject, ReplicationTargetObject, content_matches_by_etag, replication_action_for_target, - target_is_newer_than_source_null_version, + ReplicationSourceObject, ReplicationTargetObject, replication_action_for_target, target_is_newer_than_source_null_version, }; use rustfs_utils::http::{ AMZ_BUCKET_REPLICATION_STATUS, AMZ_OBJECT_LOCK_LEGAL_HOLD, AMZ_OBJECT_LOCK_MODE, AMZ_OBJECT_LOCK_RETAIN_UNTIL_DATE, @@ -365,6 +364,7 @@ fn valid_sse_replication_header(key: &str) -> Option<&str> { mod tests { use super::*; use aws_smithy_types::DateTime; + use rustfs_replication::content_matches_by_etag; use rustfs_utils::http::{ SSEC_ALGORITHM_HEADER, SUFFIX_REPLICATION_ACTUAL_OBJECT_SIZE, SUFFIX_REPLICATION_SSEC_CRC, get_header_map, };