Skip to content

Commit

Permalink
Disable default features for serde dependency. (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders429 authored Nov 19, 2023
1 parent 2ee0ac1 commit 47fe970
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ default = ["std"]
std = []

[dependencies]
serde = { version = "1.0", optional = true }
serde = { version = "1.0", default-features = false, optional = true }

[dev-dependencies]
bincode = "1.3"
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ macro_rules! nonmax {
D: serde::Deserializer<'de>,
{
let value = $primitive::deserialize(deserializer)?;
use std::convert::TryFrom;
use core::convert::TryFrom;
Self::try_from(value).map_err(serde::de::Error::custom)
}
}
Expand Down

0 comments on commit 47fe970

Please sign in to comment.