Skip to content

Commit

Permalink
refactor(std): only pull std_support if std feature is active
Browse files Browse the repository at this point in the history
Signed-off-by: Hunar Roop Kahlon <hunar.roop@gmail.com>
  • Loading branch information
kinggoesgaming committed Feb 4, 2018
1 parent 40c6b8f commit b3684ee
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,7 @@ use core::fmt;
use core::hash;
use core::str::FromStr;

// serde links to std, so go ahead an pull in our own std
// support in those situations as well.
#[cfg(any(feature = "std",
feature = "serde"))]
#[cfg(feature = "std")]
mod std_support;
#[cfg(feature = "serde")]
mod serde;
Expand Down

0 comments on commit b3684ee

Please sign in to comment.