Merge pull request #740 from serde-rs/enumset

Remove the EnumSet impls
This commit is contained in:
Oliver Schneider 2017-02-03 13:38:39 +01:00 committed by GitHub
commit d60fd84b7e
3 changed files with 1 additions and 21 deletions

View File

@ -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<T>,
EnumSetVisitor<T: Deserialize + CLike>,
visitor,
EnumSet::new(),
EnumSet::new(),
EnumSet::insert);
#[cfg(any(feature = "std", feature = "collections"))]
seq_impl!(
LinkedList<T>,

View File

@ -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)]

View File

@ -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<T> Serialize for BTreeSet<T>
serialize_seq!();
}
#[cfg(feature = "collections")]
impl<T> Serialize for EnumSet<T>
where T: Serialize + CLike
{
serialize_seq!();
}
#[cfg(feature = "std")]
impl<T, H> Serialize for HashSet<T, H>
where T: Serialize + Eq + Hash,