mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
restrict ObjectList to std targets only
This commit is contained in:
parent
7f860e058c
commit
57a4f24a02
1 changed files with 2 additions and 0 deletions
|
|
@ -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() } }
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue