Skip to content

Use designated initializers for Wayland listeners #383

@tarek-y-ismail

Description

@tarek-y-ismail

It may be better to use designated initializers than rely on comments:

        .closed = [](

Originally posted by @AlanGriffiths in #377 (comment)


Some tests don't use designated initializers when assigning handlers to events. Instead opting to use comments and the order of the handler declaration in the listener struct. It would be less error prone to use designated initializers directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TriagedTriage into JIRA to plan it in

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions