Skip to content

Commit

Permalink
Remove serde feature gates inside the serde_support module
Browse files Browse the repository at this point in the history
The entire module is already feature-gated in `lib.rs`.
  • Loading branch information
jplatte committed Dec 21, 2020
1 parent 51930b1 commit 7b34b27
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/serde_support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use crate::prelude::*;
use core::fmt;
use serde::{de, Deserialize, Deserializer, Serialize, Serializer};

#[cfg(feature = "serde")]
impl Serialize for Uuid {
fn serialize<S: Serializer>(
&self,
Expand All @@ -28,7 +27,6 @@ impl Serialize for Uuid {
}
}

#[cfg(feature = "serde")]
impl<'de> Deserialize<'de> for Uuid {
fn deserialize<D: Deserializer<'de>>(
deserializer: D,
Expand Down Expand Up @@ -88,7 +86,7 @@ impl<'de> Deserialize<'de> for Uuid {
}
}

#[cfg(all(test, feature = "serde"))]
#[cfg(test)]
mod serde_tests {
use serde_test;

Expand Down

0 comments on commit 7b34b27

Please sign in to comment.