boozook / playdate

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

LCDColorFmt should be const_trait #403

Open github-actions[bot] opened 1 month ago

github-actions[bot] commented 1 month ago

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

Source of this issue ```rust } // TODO: LCDColorFmt should be const_trait pub trait LCDColorFmt<'t> { type Display: 't + core::fmt::Debug + core::fmt::Display; fn display(&'t self) -> Self::Display; } impl<'t> LCDColorFmt<'t> for LCDSolidColor { type Display = LCDColorDisplay<'t, Self>; fn display(&self) -> LCDColorDisplay<'_, Self> { LCDColorDisplay(self) } } ```