Diffstat (limited to 'src/build/builders/core/struct.rs')
| -rw-r--r-- | src/build/builders/core/struct.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build/builders/core/struct.rs b/src/build/builders/core/struct.rs index 9ff1862..e011eff 100644 --- a/src/build/builders/core/struct.rs +++ b/src/build/builders/core/struct.rs @@ -163,7 +163,7 @@ impl<'ctx, Info, Mode: 'ctx, E: Effect> StructBuilder<'ctx, Info, Mode, E> where Info: StructTypeInfo<'ctx, Mode>, { - fn make_builders<'e>(&mut self) -> ErasedEffective<'e, (), E> + fn make_builders<'e>(&'e mut self) -> ErasedEffective<'e, (), E> where 'ctx: 'e, { @@ -399,7 +399,7 @@ where let mut index = 0; // Loop through all the fields getting a value for each one. - E::repeat_map((scope, builders), |(scope, builders)| { + E::repeat_map((scope, builders), move |(scope, builders)| { // Get the marker for the field at this index. let marker = tri!(Info::marker_from_index(index)); |