Skip to content

Remove ?Sized bounds or add CI test that they work #195

Open
@ids1024

Description

@ids1024

#132 added trait bonds with ?Sized.

Context<dyn HasDisplayHandle> was mentioned there, but if you try to specify that type anywhere, it errors because Context and ContextDispatch do not have D: ?Sized bounds. So the public API doesn't actually allow that.

Adding those bounds is easy, but is there a way to construct a Context<dyn HasDisplayHandle>?

If ?Sized is useful, we should make sure it works and have a test that it continues working on all platforms. Otherwise, it can be removed, which may make other refactoring easier.

CC @notgull

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions