diff --git a/Cargo.toml b/Cargo.toml index 09d358d..ee06d1c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,6 @@ pretty_env_logger = { version = "0.3.0", optional = true } [features] build_binary = ["clap", "pretty_env_logger"] -try_from = [] [profile.release] lto = true diff --git a/src/lib.rs b/src/lib.rs index 03d935f..bb9b729 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,4 @@ #![cfg_attr(test, feature(test))] -#![cfg_attr(feature = "try_from", feature(try_from))] #[macro_use] extern crate failure; #[macro_use] extern crate lazy_static; diff --git a/src/value.rs b/src/value.rs index 86a96af..aac2b95 100644 --- a/src/value.rs +++ b/src/value.rs @@ -1,4 +1,3 @@ -#[cfg(feature = "try_from")] use std::convert::TryFrom; use std::fmt; use std::net::Ipv4Addr; @@ -403,7 +402,6 @@ macro_rules! construct_types { } } - #[cfg(feature = "try_from")] impl TryFrom for $($value_type)* { type Error = KbinError; @@ -415,7 +413,6 @@ macro_rules! construct_types { } } - #[cfg(feature = "try_from")] impl TryFrom<&Value> for $($value_type)* { type Error = KbinError; @@ -587,7 +584,6 @@ impl Value { } } -#[cfg(feature = "try_from")] impl TryFrom for Vec { type Error = KbinError; @@ -599,7 +595,6 @@ impl TryFrom for Vec { } } -#[cfg(feature = "try_from")] impl TryFrom for Vec { type Error = KbinError; @@ -619,7 +614,6 @@ impl TryFrom for Vec { } } -#[cfg(feature = "try_from")] impl TryFrom<&Value> for Vec { type Error = KbinError;