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:
Nemo157
2020-08-21 23:25:39 +02:00
committed by GitHub
parent 7bdf6a1184
commit 3a159bc644
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -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>,