Skip to content

Commit 7dbb11d

Browse files
authored
Generalize SizeAlign::record (#2055)
Take `IntoIterator` instead of `Iterator`, used in the `wit-bindgen` crate.
1 parent d9680fe commit 7dbb11d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/wit-parser/src/sizealign.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ impl SizeAlign {
349349
align_to_arch(tag_size, max_align)
350350
}
351351

352-
pub fn record<'a>(&self, types: impl Iterator<Item = &'a Type>) -> ElementInfo {
352+
pub fn record<'a>(&self, types: impl IntoIterator<Item = &'a Type>) -> ElementInfo {
353353
let mut size = ArchitectureSize::default();
354354
let mut align = Alignment::default();
355355
for ty in types {

0 commit comments

Comments
 (0)