introduce doc_auto_cfg
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good

This commit is contained in:
2024-03-24 12:22:08 +01:00
parent 3faffd52fc
commit 3e62d7d411
11 changed files with 4 additions and 39 deletions

View File

@@ -77,7 +77,6 @@ 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<u8> {
let mut buf = alloc::vec![0; self.size()];
self.write_to_be_bytes(&mut buf).unwrap();