From 7bc120062895aadd440ab015e62275841465a1a6 Mon Sep 17 00:00:00 2001 From: tison Date: Wed, 3 Jun 2026 09:08:22 +0800 Subject: [PATCH 1/2] kv::std_support may not need value-bag Signed-off-by: tison --- src/kv/value.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kv/value.rs b/src/kv/value.rs index f9e2a677b..146379711 100644 --- a/src/kv/value.rs +++ b/src/kv/value.rs @@ -415,7 +415,7 @@ impl<'v> Value<'v> { } } -#[cfg(feature = "kv_std")] +#[cfg(all(feature = "kv", feature = "std"))] mod std_support { use std::borrow::Cow; use std::rc::Rc; @@ -462,6 +462,7 @@ mod std_support { } } + #[cfg(feature = "kv_std")] impl<'v> Value<'v> { /// Try convert this value into a string. pub fn to_cow_str(&self) -> Option> { From 20b3b050469d6aab6c0f2e77acaab2313d5fc9a2 Mon Sep 17 00:00:00 2001 From: tison Date: Wed, 3 Jun 2026 09:24:49 +0800 Subject: [PATCH 2/2] drop cfg-feature=kv as it is already met Signed-off-by: tison --- src/kv/value.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kv/value.rs b/src/kv/value.rs index 146379711..6991e3895 100644 --- a/src/kv/value.rs +++ b/src/kv/value.rs @@ -415,7 +415,7 @@ impl<'v> Value<'v> { } } -#[cfg(all(feature = "kv", feature = "std"))] +#[cfg(feature = "std")] mod std_support { use std::borrow::Cow; use std::rc::Rc;