Skip to content

Commit

Permalink
qualify path to serde
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Apr 10, 2023
1 parent 9c125f2 commit 955d352
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/kv/value.rs
Expand Up @@ -199,7 +199,7 @@ impl<'v> Value<'v> {
/// Get a value from a type implementing `serde::Serialize`.
pub fn capture_serde<T>(value: &'v T) -> Self
where
T: serde::Serialize + 'static,
T: self::serde::Serialize + 'static,
{
Value {
inner: ValueBag::capture_serde1(value),
Expand Down Expand Up @@ -241,7 +241,7 @@ impl<'v> Value<'v> {
#[cfg(feature = "kv_unstable_serde")]
pub fn from_serde<T>(value: &'v T) -> Self
where
T: serde::Serialize,
T: self::serde::Serialize,
{
Value {
inner: ValueBag::from_serde1(value),
Expand Down Expand Up @@ -406,10 +406,10 @@ impl ToValue for dyn std::error::Error + 'static {
}

#[cfg(feature = "kv_unstable_serde")]
impl<'v> serde::Serialize for Value<'v> {
impl<'v> self::serde::Serialize for Value<'v> {
fn serialize<S>(&self, s: S) -> Result<S::Ok, S::Error>
where
S: serde::Serializer,
S: self::serde::Serializer,
{
self.inner.serialize(s)
}
Expand Down

0 comments on commit 955d352

Please sign in to comment.