Skip to content

refactor: no need to box in device struct #409

@OGKevin

Description

@OGKevin

wifi_manager: OnceCell<Box<dyn crate::device::wifi::WifiManager>>,

since due to the feature flags, there is always 1 concrete type implementation. So there is no need to box, can just create type alias and call it a day. Should increase performance by a 🤏🏾.

Questioned this approach when making a time manager for #342 which had similar kobo feature gates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions