mirror of
https://github.com/openharmony/third_party_rust_tinyvec.git
synced 2026-07-21 01:35:22 -04:00
Fix building docs on docs.rs (#114)
* Don't enable nightly features when documenting on docs.rs * Mark serde impls with doc(cfg)
This commit is contained in:
@@ -145,6 +145,7 @@ impl<A: Array, I: SliceIndex<[A::Item]>> IndexMut<I> for ArrayVec<A> {
|
||||
}
|
||||
|
||||
#[cfg(feature = "serde")]
|
||||
#[cfg_attr(docs_rs, doc(cfg(feature = "serde")))]
|
||||
impl<A: Array> Serialize for ArrayVec<A>
|
||||
where
|
||||
A::Item: Serialize,
|
||||
@@ -163,6 +164,7 @@ where
|
||||
}
|
||||
|
||||
#[cfg(feature = "serde")]
|
||||
#[cfg_attr(docs_rs, doc(cfg(feature = "serde")))]
|
||||
impl<'de, A: Array> Deserialize<'de> for ArrayVec<A>
|
||||
where
|
||||
A::Item: Deserialize<'de>,
|
||||
|
||||
Reference in New Issue
Block a user