From 44c3821d9de51c58ac8b64cee368b28890e18f9e Mon Sep 17 00:00:00 2001 From: Daniel Beckwith Date: Tue, 31 Mar 2020 18:20:25 -0400 Subject: [PATCH] More const --- src/writers/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/writers/mod.rs b/src/writers/mod.rs index a129de3..ed66771 100644 --- a/src/writers/mod.rs +++ b/src/writers/mod.rs @@ -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 } }