mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 12:31:02 +00:00
@@ -27,8 +27,6 @@ use std::collections::{
|
|||||||
VecDeque,
|
VecDeque,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(feature = "collections")]
|
|
||||||
use collections::enum_set::{CLike, EnumSet};
|
|
||||||
#[cfg(feature = "collections")]
|
#[cfg(feature = "collections")]
|
||||||
use collections::borrow::ToOwned;
|
use collections::borrow::ToOwned;
|
||||||
|
|
||||||
@@ -481,15 +479,6 @@ seq_impl!(
|
|||||||
BTreeSet::new(),
|
BTreeSet::new(),
|
||||||
BTreeSet::insert);
|
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"))]
|
#[cfg(any(feature = "std", feature = "collections"))]
|
||||||
seq_impl!(
|
seq_impl!(
|
||||||
LinkedList<T>,
|
LinkedList<T>,
|
||||||
|
|||||||
+1
-1
@@ -63,7 +63,7 @@
|
|||||||
#![cfg_attr(not(feature = "std"), no_std)]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
#![cfg_attr(feature = "unstable", feature(nonzero, inclusive_range, zero_one))]
|
#![cfg_attr(feature = "unstable", feature(nonzero, inclusive_range, zero_one))]
|
||||||
#![cfg_attr(feature = "alloc", feature(alloc))]
|
#![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))]
|
#![cfg_attr(feature = "cargo-clippy", allow(linkedlist, type_complexity, doc_markdown))]
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
|
|
||||||
|
|||||||
@@ -24,8 +24,6 @@ use collections::{
|
|||||||
Vec,
|
Vec,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(feature = "collections")]
|
|
||||||
use collections::enum_set::{CLike, EnumSet};
|
|
||||||
#[cfg(feature = "collections")]
|
#[cfg(feature = "collections")]
|
||||||
use collections::borrow::ToOwned;
|
use collections::borrow::ToOwned;
|
||||||
|
|
||||||
@@ -278,13 +276,6 @@ impl<T> Serialize for BTreeSet<T>
|
|||||||
serialize_seq!();
|
serialize_seq!();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "collections")]
|
|
||||||
impl<T> Serialize for EnumSet<T>
|
|
||||||
where T: Serialize + CLike
|
|
||||||
{
|
|
||||||
serialize_seq!();
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
impl<T, H> Serialize for HashSet<T, H>
|
impl<T, H> Serialize for HashSet<T, H>
|
||||||
where T: Serialize + Eq + Hash,
|
where T: Serialize + Eq + Hash,
|
||||||
|
|||||||
Reference in New Issue
Block a user