mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-21 09:14:34 +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)]
|
#[derive(Debug, Clone)]
|
||||||
/// This API relies on an upgraded version of rkyv that was not available when the ClipObjectList
|
/// 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.
|
/// API was defined: we can now just use a `Vec` to do the trick.
|
||||||
|
#[cfg(feature = "std")]
|
||||||
pub struct ObjectList {
|
pub struct ObjectList {
|
||||||
pub list: Vec<ClipObjectType>,
|
pub list: Vec<ClipObjectType>,
|
||||||
}
|
}
|
||||||
|
#[cfg(feature = "std")]
|
||||||
impl ObjectList {
|
impl ObjectList {
|
||||||
pub fn new() -> Self { Self { list: Vec::new() } }
|
pub fn new() -> Self { Self { list: Vec::new() } }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue