diff --git a/dir-structure-macros/src/dir_structure_async/write_to_async_ref.rs b/dir-structure-macros/src/dir_structure_async/write_to_async_ref.rs index 27754ac..3bd8c3c 100644 --- a/dir-structure-macros/src/dir_structure_async/write_to_async_ref.rs +++ b/dir-structure-macros/src/dir_structure_async/write_to_async_ref.rs @@ -93,13 +93,13 @@ pub(super) fn expand_dir_structure_for_field( async_write_ref_future.clauses_ref_vfs = true; let bound = vec![ parse_quote! { - for<'trivial> #actual_field_ty_perform: ::dir_structure::traits::asy::WriteToAsyncRef<'vfs, Vfs> - }, - parse_quote! { - for<'trivial> <#actual_field_ty_perform as ::dir_structure::traits::asy::WriteToAsyncRef<'vfs, Vfs>>::Future<'fut>: ::std::future::Future> + ::std::marker::Send + ::std::marker::Unpin + 'fut + #actual_field_ty_perform: ::dir_structure::traits::asy::WriteToAsyncRef<'vfs, Vfs> }, ]; async_write_ref_future.clauses.extend(bound.clone()); + async_write_ref_future.clauses.push(parse_quote! { + <#actual_field_ty_perform as ::dir_structure::traits::asy::WriteToAsyncRef<'vfs, Vfs>>::Future<'fut>: ::std::future::Future> + ::std::marker::Unpin + 'fut + }); async_write_ref_future.clauses.push(parse_quote! { 'vfs: 'fut });