Remove the EnumSet impls
This commit is contained in:
parent
faaa494579
commit
9f04b9d6e7
@ -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>,
|
||||
|
@ -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)]
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user