From c1685532902a69781213b64fcec281dc161b56d0 Mon Sep 17 00:00:00 2001 From: Xiangpeng Hao Date: Wed, 8 May 2024 09:42:58 -0500 Subject: [PATCH] make clippy happy --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 491886e..139d3e8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -292,7 +292,7 @@ where /// Display the internal node statistics #[cfg(feature = "stats")] - #[cfg_attr(doc_cfg, doc(cfg(feature = "stats")))] + #[cfg_attr(docsrs, doc(cfg(feature = "stats")))] pub fn stats(&self) -> stats::NodeStats { self.inner.stats() } @@ -324,7 +324,7 @@ where /// assert_eq!(new_v, 43); /// ``` #[cfg(feature = "db_extension")] - #[cfg_attr(doc_cfg, doc(cfg(feature = "db_extension")))] + #[cfg_attr(docsrs, doc(cfg(feature = "db_extension")))] pub fn compute_on_random( &self, rng: &mut impl rand::Rng,