added missing doc_cfg attribute
Rust/spacepackets/pipeline/head This commit looks good Details

This commit is contained in:
Robin Müller 2024-02-17 21:01:11 +01:00
parent 4e6dcc5afa
commit 6056342334
Signed by: muellerr
GPG Key ID: A649FB78196E3849
1 changed files with 1 additions and 0 deletions

View File

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