From 1011602cf60574ba86ade2b5d5a745d8412f4cf4 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Wed, 16 Feb 2022 18:05:09 +0800 Subject: [PATCH] Fix no-std build. --- src/ast/stmt.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ast/stmt.rs b/src/ast/stmt.rs index 26c880fe..88aee7e0 100644 --- a/src/ast/stmt.rs +++ b/src/ast/stmt.rs @@ -299,7 +299,10 @@ impl From for StmtBlock { impl IntoIterator for StmtBlock { type Item = Stmt; + #[cfg(not(feature = "no_std"))] type IntoIter = smallvec::IntoIter<[Stmt; 8]>; + #[cfg(feature = "no_std")] + type IntoIter = smallvec::IntoIter<[Stmt; 3]>; #[inline(always)] fn into_iter(self) -> Self::IntoIter {