@@ -13,7 +13,6 @@ use std::{
1313/// - [`object_id::AsHexString`] — converts an [`crate::oid::ObjectId`] to and from a hex string.
1414/// - [`object_id::FromHexString`] — converts a hex string to and from an [`crate::oid::ObjectId`].
1515#[ cfg( feature = "serde_with-3" ) ]
16- #[ cfg_attr( docsrs, doc( cfg( feature = "serde_with-3" ) ) ) ]
1716pub mod object_id {
1817 use crate :: { macros:: serde_conv_doc, oid:: ObjectId } ;
1918 use serde:: { Deserialize , Deserializer , Serialize , Serializer } ;
@@ -85,7 +84,6 @@ pub mod object_id {
8584/// - [`datetime::FromTime03OffsetDateTime`] — converts a [`time::OffsetDateTime`] to and from a
8685/// [`crate::DateTime`].
8786#[ cfg( feature = "serde_with-3" ) ]
88- #[ cfg_attr( docsrs, doc( cfg( feature = "serde_with-3" ) ) ) ]
8987pub mod datetime {
9088 use crate :: { macros:: serde_conv_doc, DateTime } ;
9189 use chrono:: Utc ;
@@ -177,7 +175,6 @@ pub mod datetime {
177175
178176 #[ cfg( feature = "chrono-0_4" ) ]
179177 serde_conv_doc ! (
180- #[ cfg_attr( docsrs, doc( cfg( feature = "chrono-0_4" ) ) ) ]
181178 /// Converts a [`chrono::DateTime`] to and from a [`DateTime`].
182179 /// ```rust
183180 /// # #[cfg(all(feature = "chrono-0_4", feature = "serde_with-3"))]
@@ -205,7 +202,6 @@ pub mod datetime {
205202
206203 #[ cfg( feature = "time-0_3" ) ]
207204 serde_conv_doc ! (
208- #[ cfg_attr( docsrs, doc( cfg( feature = "time-0_3" ) ) ) ]
209205 /// Converts a [`time::OffsetDateTime`] to and from a [`DateTime`].
210206 /// ```rust
211207 /// # #[cfg(all(feature = "time-0_3", feature = "serde_with-3"))]
@@ -239,7 +235,6 @@ pub mod datetime {
239235/// - [`timestamp::AsU32`] — converts a [`crate::Timestamp`] to and from a `u32`.
240236/// - [`timestamp::FromU32`] — converts a `u32` to and from a [`crate::Timestamp`].
241237#[ cfg( feature = "serde_with-3" ) ]
242- #[ cfg_attr( docsrs, doc( cfg( feature = "serde_with-3" ) ) ) ]
243238pub mod timestamp {
244239 use crate :: { macros:: serde_conv_doc, Timestamp } ;
245240 use serde:: { Deserialize , Deserializer , Serialize , Serializer } ;
@@ -319,7 +314,6 @@ pub mod timestamp {
319314/// - [`u32::AsI32`] — converts a `u32` to and from an `i32`.
320315/// - [`u32::AsI64`] — converts a `u32` to and from an `i64`.
321316#[ cfg( feature = "serde_with-3" ) ]
322- #[ cfg_attr( docsrs, doc( cfg( feature = "serde_with-3" ) ) ) ]
323317pub mod u32 {
324318 use crate :: macros:: serde_conv_doc;
325319 use serde:: { Deserialize , Deserializer , Serialize , Serializer } ;
@@ -421,7 +415,6 @@ pub mod u32 {
421415/// - [`u64::AsI32`] — converts a `u64` to and from an `i32`.
422416/// - [`u64::AsI64`] — converts a `u64` to and from an `i64`.
423417#[ cfg( feature = "serde_with-3" ) ]
424- #[ cfg_attr( docsrs, doc( cfg( feature = "serde_with-3" ) ) ) ]
425418pub mod u64 {
426419 use crate :: macros:: serde_conv_doc;
427420 use serde:: { Deserialize , Deserializer , Serialize , Serializer } ;
@@ -533,7 +526,6 @@ pub mod u64 {
533526/// - [`uuid_1::AsPythonLegacyBinary`] — serializes a [`uuid::Uuid`] as a [`crate::Binary`] in the
534527/// legacy Python driver UUID format.
535528#[ cfg( all( feature = "serde_with-3" , feature = "uuid-1" ) ) ]
536- #[ cfg_attr( docsrs, doc( cfg( all( feature = "serde_with-3" , feature = "uuid-1" ) ) ) ) ]
537529pub mod uuid_1 {
538530 use crate :: macros:: serde_conv_doc;
539531 use serde:: { Deserialize , Deserializer , Serialize , Serializer } ;
@@ -681,13 +673,11 @@ macro_rules! as_binary_mod {
681673 use $uu;
682674
683675 /// Serializes a Uuid as a Binary.
684- #[ cfg_attr( docsrs, doc( $feat) ) ]
685676 pub fn serialize<S : Serializer >( val: & Uuid , serializer: S ) -> Result <S :: Ok , S :: Error > {
686677 crate :: uuid:: Uuid :: from( * val) . serialize( serializer)
687678 }
688679
689680 /// Deserializes a Uuid from a Binary.
690- #[ cfg_attr( docsrs, doc( $feat) ) ]
691681 pub fn deserialize<' de, D >( deserializer: D ) -> Result <Uuid , D :: Error >
692682 where
693683 D : Deserializer <' de>,
@@ -707,14 +697,12 @@ macro_rules! as_legacy_binary_mod {
707697 use $uu;
708698
709699 /// Serializes a Uuid as a Binary in the legacy UUID format.
710- #[ cfg_attr( docsrs, doc( $feat) ) ]
711700 pub fn serialize<S : Serializer >( val: & Uuid , serializer: S ) -> Result <S :: Ok , S :: Error > {
712701 let binary = Binary :: from_uuid_with_representation( crate :: uuid:: Uuid :: from( * val) , $rep) ;
713702 binary. serialize( serializer)
714703 }
715704
716705 /// Deserializes a Uuid from a Binary in the legacy UUID format.
717- #[ cfg_attr( docsrs, doc( $feat) ) ]
718706 pub fn deserialize<' de, D >( deserializer: D ) -> Result <Uuid , D :: Error >
719707 where
720708 D : Deserializer <' de>,
0 commit comments