From 6056342334d5360feb56ab730659c82121c4b211 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sat, 17 Feb 2024 21:01:11 +0100 Subject: [PATCH] added missing doc_cfg attribute --- src/util.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util.rs b/src/util.rs index 44f15dd..ecec1f8 100644 --- a/src/util.rs +++ b/src/util.rs @@ -77,6 +77,7 @@ pub trait UnsignedEnum { fn value(&self) -> u64; #[cfg(feature = "alloc")] + #[cfg_attr(doc_cfg, doc(cfg(feature = "alloc")))] fn to_vec(&self) -> alloc::vec::Vec { let mut buf = alloc::vec![0; self.size()]; self.write_to_be_bytes(&mut buf).unwrap();