diff --git a/rustfs/src/admin/storage_api.rs b/rustfs/src/admin/storage_api.rs index 7407b7dd8..c423bddae 100644 --- a/rustfs/src/admin/storage_api.rs +++ b/rustfs/src/admin/storage_api.rs @@ -1001,7 +1001,9 @@ pub(crate) mod runtime { } pub(crate) mod s3 { - pub(crate) use s3s::{Body, S3Error, S3ErrorCode, S3Request, S3Response, S3Result, auth, header}; + #[cfg(test)] + pub(crate) use s3s::auth; + pub(crate) use s3s::{Body, S3Error, S3ErrorCode, S3Request, S3Response, S3Result, header}; /// Build an `S3Error` without reaching for the `s3s` error macro. ///