From 64a313e1b95b37e80b00eb0031664578760f55ad Mon Sep 17 00:00:00 2001 From: Joe McCain III <92560746+FL03@users.noreply.github.com> Date: Fri, 10 May 2024 15:28:59 -0500 Subject: [PATCH] Update impl_from.rs Signed-off-by: Joe McCain III <92560746+FL03@users.noreply.github.com> --- models/linear/src/impls/params/impl_from.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 + }