boozook / playdate

Playdate Build Tools and API
https://mastodon.gamedev.place/@pd
MIT License
133 stars 8 forks source link

IntoLCDColor should be const_trait #402

Open github-actions[bot] opened 1 month ago

github-actions[bot] commented 1 month ago

IntoLCDColor should be const_trait https://github.com/boozook/playdate/blob/ea28ed41c07083271ac5dfac6a3b96c7d254ed78/api/color/src/lib.rs#L131

Source of this issue ```rust } // TODO: IntoLCDColor should be const_trait pub trait IntoLCDColor { fn into_color(self) -> LCDColor; } impl IntoLCDColor for LCDSolidColor { fn into_color(self) -> LCDColor { self as LCDColor } } ```