Skip to content

Commit

Permalink
use kv_unstable_std instead of std
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus authored Jan 8, 2021
1 parent b649159 commit cc3d6ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/kv/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ impl<'v> Value<'v> {
}
}

#[cfg(feature = "std")]
#[cfg(feature = "kv_unstable_std")]
mod std_support {
use super::*;

Expand Down Expand Up @@ -615,7 +615,7 @@ pub(crate) mod tests {
for v in str() {
assert!(v.to_borrowed_str().is_some());

#[cfg(feature = "std")]
#[cfg(feature = "kv_unstable_std")]
assert!(v.to_str().is_some());
}

Expand All @@ -624,13 +624,13 @@ pub(crate) mod tests {

assert!(v.to_borrowed_str().is_some());

#[cfg(feature = "std")]
#[cfg(feature = "kv_unstable_std")]
assert!(v.to_str().is_some());

for v in unsigned().chain(signed()).chain(float()).chain(bool()) {
assert!(v.to_borrowed_str().is_none());

#[cfg(feature = "std")]
#[cfg(feature = "kv_unstable_std")]
assert!(v.to_str().is_none());
}
}
Expand Down

0 comments on commit cc3d6ed

Please sign in to comment.