Skip to content

Commit

Permalink
Avoid unkeyed fields usage in generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
shota3506 committed Nov 29, 2024
1 parent 5185ff8 commit eedbfbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/generate-fix/internal/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ type {{ .Name }} struct {
// FromMessage creates a {{ .Name }} from a quickfix.Message instance.
func FromMessage(m *quickfix.Message) {{ .Name }} {
return {{ .Name }}{
Header: {{ .TransportPackage}}.Header{&m.Header},
Header: {{ .TransportPackage}}.Header{Header: &m.Header},
Body: &m.Body,
Trailer: {{ .TransportPackage}}.Trailer{&m.Trailer},
Trailer: {{ .TransportPackage}}.Trailer{Trailer: &m.Trailer},
Message: m,
}
}
Expand Down

0 comments on commit eedbfbf

Please sign in to comment.