From 9db1d6f06b6c1d4d5d176517e5da5ec8615ddd32 Mon Sep 17 00:00:00 2001 From: Zhengchao An Date: Wed, 26 Aug 2026 10:19:47 +0800 Subject: [PATCH] fix(ci): restore merged main Clippy lanes (#6612) --- crates/ecstore/src/io_support/rio.rs | 2 ++ crates/kms/src/config_secret.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ecstore/src/io_support/rio.rs b/crates/ecstore/src/io_support/rio.rs index c5a4e8bdb..da3054ca9 100644 --- a/crates/ecstore/src/io_support/rio.rs +++ b/crates/ecstore/src/io_support/rio.rs @@ -328,7 +328,9 @@ pub struct WriteEncryption { /// after every node (and every RustFS warm/replication target that receives /// raw ciphertext) runs a release with v2 read support. Reading v2 objects /// needs no switch — the decrypt reader dispatches on the frame type byte. +#[cfg(not(feature = "rio-v2"))] pub(crate) const ENV_RUSTFS_ENCRYPTION_FRAME_V2: &str = "RUSTFS_ENCRYPTION_FRAME_V2"; +#[cfg(not(feature = "rio-v2"))] pub(crate) const DEFAULT_RUSTFS_ENCRYPTION_FRAME_V2: bool = false; #[cfg(not(feature = "rio-v2"))] diff --git a/crates/kms/src/config_secret.rs b/crates/kms/src/config_secret.rs index 8cd6c3d43..4903b384d 100644 --- a/crates/kms/src/config_secret.rs +++ b/crates/kms/src/config_secret.rs @@ -338,7 +338,7 @@ mod tests { serde_json::to_value(&config).expect("config serializes") } - fn token_at<'a>(document: &'a Value) -> &'a str { + fn token_at(document: &Value) -> &str { document["backend_config"]["VaultKV2"]["auth_method"]["Token"]["token"] .as_str() .expect("token leaf exists")