restrict ObjectList to std targets only

This commit is contained in:
bunnie 2025-03-04 19:11:23 +08:00
parent 7f860e058c
commit 57a4f24a02

View file

@ -46,9 +46,11 @@ impl ClipObjectList {
#[derive(Debug, Clone)]
/// This API relies on an upgraded version of rkyv that was not available when the ClipObjectList
/// API was defined: we can now just use a `Vec` to do the trick.
#[cfg(feature = "std")]
pub struct ObjectList {
pub list: Vec<ClipObjectType>,
}
#[cfg(feature = "std")]
impl ObjectList {
pub fn new() -> Self { Self { list: Vec::new() } }