From e4486d07f00d15718fef8fff30bdeab99393043a Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 29 Oct 2024 14:01:50 +1100 Subject: [PATCH] hashes: Hide macros from docs These three macros are solely provided to reduce code duplication, they are only part of the public API because they are used by the "real" public macro `hash_newtype`. --- hashes/src/macros.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hashes/src/macros.rs b/hashes/src/macros.rs index 480d336ca..2b5113818 100644 --- a/hashes/src/macros.rs +++ b/hashes/src/macros.rs @@ -3,6 +3,7 @@ //! Public macros. /// Adds hexadecimal formatting implementation of a trait `$imp` to a given type `$ty`. +#[doc(hidden)] #[macro_export] macro_rules! hex_fmt_impl( ($reverse:expr, $len:expr, $ty:ident) => ( @@ -48,6 +49,7 @@ macro_rules! hex_fmt_impl( ); /// Adds slicing traits implementations to a given type `$ty` +#[doc(hidden)] #[macro_export] macro_rules! borrow_slice_impl( ($ty:ident) => ( @@ -439,6 +441,7 @@ pub mod serde_details { /// Implements `Serialize` and `Deserialize` for a type `$t` which /// represents a newtype over a byte-slice over length `$len`. +#[doc(hidden)] #[macro_export] #[cfg(feature = "serde")] macro_rules! serde_impl(