More const

pull/12/head
Daniel Beckwith 2020-03-31 18:20:25 -04:00
parent 1b18fee638
commit b113bd0857
1 changed files with 1 additions and 1 deletions

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 }
}