diff --git a/Cargo.toml b/Cargo.toml index 62eb66e..7354d2c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ serde = ["dep:serde"] [dependencies] bitstring = { version = "0.2.0", optional = true, features = ["net"] } -serde = { version = "1.0.27", default-features = false, features = ["alloc"], optional = true } +serde = { version = "1.0.217", default-features = false, features = ["alloc"], optional = true } [dev-dependencies] serde_test = "1.0.27" diff --git a/src/errors.rs b/src/errors.rs index efa6086..c1d3743 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -81,7 +81,6 @@ impl fmt::Display for NetworkParseError { } } -#[cfg(feature = "std")] impl Error for NetworkParseError { fn description(&self) -> &str { "network parse error" @@ -137,7 +136,6 @@ impl fmt::Display for InetTupleError { } } -#[cfg(feature = "std")] impl Error for InetTupleError { fn description(&self) -> &str { "inet tuple error"