Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit ddd2b93

Browse files
committed
Put cfg attributes under rustdocs
By convention we put the compiler attributes underneath the rustdocs.
1 parent 3f32a31 commit ddd2b93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/serde_macros.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
//! Macros for serde trait implementations, and supporting code.
1616
//!
1717
18-
#[cfg(feature = "serde")]
1918
/// Functions used by serde impls of all hashes.
19+
#[cfg(feature = "serde")]
2020
pub mod serde_details {
2121
use Error;
2222

@@ -119,10 +119,10 @@ pub mod serde_details {
119119
}
120120
}
121121

122-
#[macro_export]
123-
#[cfg(feature = "serde")]
124122
/// Implements `Serialize` and `Deserialize` for a type `$t` which
125123
/// represents a newtype over a byte-slice over length `$len`.
124+
#[macro_export]
125+
#[cfg(feature = "serde")]
126126
macro_rules! serde_impl(
127127
($t:ident, $len:expr) => (
128128
impl $crate::serde_macros::serde_details::SerdeHash for $t {

0 commit comments

Comments
 (0)