Change StaticVec to 3 inline elements.

This commit is contained in:
Stephen Chung
2021-09-10 20:25:22 +08:00
parent 43de522568
commit 84be799403
4 changed files with 27 additions and 26 deletions

View File

@@ -180,7 +180,7 @@ impl Imports {
impl IntoIterator for Imports {
type Item = (Identifier, Shared<Module>);
type IntoIter =
Zip<Rev<smallvec::IntoIter<[Identifier; 4]>>, Rev<smallvec::IntoIter<[Shared<Module>; 4]>>>;
Zip<Rev<smallvec::IntoIter<[Identifier; 3]>>, Rev<smallvec::IntoIter<[Shared<Module>; 3]>>>;
#[inline]
fn into_iter(self) -> Self::IntoIter {