More const

This commit is contained in:
Daniel Beckwith 2020-03-31 18:20:25 -04:00
parent cbad0a141e
commit 44c3821d9d

View file

@ -29,7 +29,7 @@ pub struct ScreenCharacter {
impl ScreenCharacter {
/// Creates a new `ScreenCharacter` with the specified `character` and `TextModeColor`.
pub fn new(character: u8, color: TextModeColor) -> ScreenCharacter {
pub const fn new(character: u8, color: TextModeColor) -> ScreenCharacter {
ScreenCharacter { character, color }
}