Unverified Commit 7fb78bb6 authored by 82marbag's avatar 82marbag Committed by GitHub
Browse files

Add lifetimes in structure impl (#3106)



----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._

Signed-off-by: default avatarDaniele Ahmed <ahmeddan@amazon.de>
parent cae35b7d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -133,7 +133,8 @@ open class StructureGenerator(
        if (accessorMembers.isEmpty()) {
            return
        }
        writer.rustBlock("impl $name") {
        val lifetimes = lifetimeDeclaration()
        writer.rustBlock("impl $lifetimes $name $lifetimes") {
            // Render field accessor methods
            forEachMember(accessorMembers) { member, memberName, memberSymbol ->
                val memberType = memberSymbol.rustType()