Fix no-std build.

This commit is contained in:
Stephen Chung 2022-02-16 18:05:09 +08:00
parent 0d2e3d82f3
commit 1011602cf6

View File

@ -299,7 +299,10 @@ impl From<Stmt> 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 {