diff --git a/models/linear/src/impls/params/impl_from.rs b/models/linear/src/impls/params/impl_from.rs index 794d29e7..91c2b1b4 100644 --- a/models/linear/src/impls/params/impl_from.rs +++ b/models/linear/src/impls/params/impl_from.rs @@ -4,7 +4,7 @@ */ use crate::params::{Biased, NodeBase, Pair, ParamMode, ParamsBase, Unbiased}; use crate::Features; -#[cfg(feature = "alloc")] +#[cfg(all(feature = "alloc", no_std))] use alloc::vec; use core::marker::PhantomData; use nd::prelude::*; @@ -138,4 +138,4 @@ impl From> for ParamsBase _mode: PhantomData::, } } - } \ No newline at end of file + }