diff --git a/serde/src/de/impls.rs b/serde/src/de/impls.rs index 84b98f10..fa3cd214 100644 --- a/serde/src/de/impls.rs +++ b/serde/src/de/impls.rs @@ -27,8 +27,6 @@ use std::collections::{ VecDeque, }; -#[cfg(feature = "collections")] -use collections::enum_set::{CLike, EnumSet}; #[cfg(feature = "collections")] use collections::borrow::ToOwned; @@ -481,15 +479,6 @@ seq_impl!( BTreeSet::new(), BTreeSet::insert); -#[cfg(feature = "collections")] -seq_impl!( - EnumSet, - EnumSetVisitor, - visitor, - EnumSet::new(), - EnumSet::new(), - EnumSet::insert); - #[cfg(any(feature = "std", feature = "collections"))] seq_impl!( LinkedList, diff --git a/serde/src/lib.rs b/serde/src/lib.rs index bfcbeb3f..58cc9b8f 100644 --- a/serde/src/lib.rs +++ b/serde/src/lib.rs @@ -63,7 +63,7 @@ #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(feature = "unstable", feature(nonzero, inclusive_range, zero_one))] #![cfg_attr(feature = "alloc", feature(alloc))] -#![cfg_attr(feature = "collections", feature(collections, enumset))] +#![cfg_attr(feature = "collections", feature(collections))] #![cfg_attr(feature = "cargo-clippy", allow(linkedlist, type_complexity, doc_markdown))] #![deny(missing_docs)] diff --git a/serde/src/ser/impls.rs b/serde/src/ser/impls.rs index 6496d860..c23afdbc 100644 --- a/serde/src/ser/impls.rs +++ b/serde/src/ser/impls.rs @@ -24,8 +24,6 @@ use collections::{ Vec, }; -#[cfg(feature = "collections")] -use collections::enum_set::{CLike, EnumSet}; #[cfg(feature = "collections")] use collections::borrow::ToOwned; @@ -278,13 +276,6 @@ impl Serialize for BTreeSet serialize_seq!(); } -#[cfg(feature = "collections")] -impl Serialize for EnumSet - where T: Serialize + CLike -{ - serialize_seq!(); -} - #[cfg(feature = "std")] impl Serialize for HashSet where T: Serialize + Eq + Hash,