We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SizeAlign::record
1 parent d9680fe commit 7dbb11dCopy full SHA for 7dbb11d
1 file changed
crates/wit-parser/src/sizealign.rs
@@ -349,7 +349,7 @@ impl SizeAlign {
349
align_to_arch(tag_size, max_align)
350
}
351
352
- pub fn record<'a>(&self, types: impl Iterator<Item = &'a Type>) -> ElementInfo {
+ pub fn record<'a>(&self, types: impl IntoIterator<Item = &'a Type>) -> ElementInfo {
353
let mut size = ArchitectureSize::default();
354
let mut align = Alignment::default();
355
for ty in types {
0 commit comments