This commit is contained in:
Folkert 2022-08-07 13:20:28 +02:00
parent 7f758ab9b6
commit ca5610c748
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -292,7 +292,7 @@ fn add_type(target_info: TargetInfo, id: TypeId, types: &Types, impls: &mut Impl
add_decl( add_decl(
impls, impls,
opt_impl.clone(), opt_impl,
target_info, target_info,
format!( format!(
r#"/// Other `as` methods return a payload, but since the {tag_name} tag r#"/// Other `as` methods return a payload, but since the {tag_name} tag
@ -610,7 +610,7 @@ pub struct {name} {{
} }
} }
for (tag_index, (tag_name, opt_payload_id)) in tags.into_iter().enumerate() { for (tag_index, (tag_name, opt_payload_id)) in tags.iter().enumerate() {
// Add a convenience constructor function to the impl, e.g. // Add a convenience constructor function to the impl, e.g.
// //
// /// Construct a tag named Foo, with the appropriate payload // /// Construct a tag named Foo, with the appropriate payload