constify ctor
bendn 7 weeks ago
parent 4689a0b · commit e72ae36
-rw-r--r--src/cell.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cell.rs b/src/cell.rs
index f0d8021..a666814 100644
--- a/src/cell.rs
+++ b/src/cell.rs
@@ -60,7 +60,7 @@ use std::fmt::Debug;
use std::hash::Hash;
use std::ops::{BitAnd, BitAndAssign, BitOr, BitOrAssign};
impl Style {
- pub fn new(fg: [u8; 3], bg: [u8; 3]) -> Self {
+ pub const fn new(fg: [u8; 3], bg: [u8; 3]) -> Self {
Self {
fg,
bg,