Skip to content

Commit 7bc1200

Browse files
committed
kv::std_support may not need value-bag
Signed-off-by: tison <wander4096@gmail.com>
1 parent 5808392 commit 7bc1200

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/kv/value.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ impl<'v> Value<'v> {
415415
}
416416
}
417417

418-
#[cfg(feature = "kv_std")]
418+
#[cfg(all(feature = "kv", feature = "std"))]
419419
mod std_support {
420420
use std::borrow::Cow;
421421
use std::rc::Rc;
@@ -462,6 +462,7 @@ mod std_support {
462462
}
463463
}
464464

465+
#[cfg(feature = "kv_std")]
465466
impl<'v> Value<'v> {
466467
/// Try convert this value into a string.
467468
pub fn to_cow_str(&self) -> Option<Cow<'v, str>> {

0 commit comments

Comments
 (0)