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 {