mirror of https://github.com/helix-editor/helix
chore: remove `const`
parent
94276ba2ac
commit
d24381eff5
|
@ -306,7 +306,7 @@ impl Theme {
|
|||
}
|
||||
|
||||
/// Create a Highlight that represents an RGB color
|
||||
pub const fn rgb_highlight(r: u8, g: u8, b: u8) -> Highlight {
|
||||
pub fn rgb_highlight(r: u8, g: u8, b: u8) -> Highlight {
|
||||
// -1 because highlight is "non-max": u32::MAX is reserved for the null pointer
|
||||
// optimization.
|
||||
Highlight::new(u32::from_be_bytes([u8::MAX, r, g, b]) - 1)
|
||||
|
|
Loading…
Reference in New Issue