perf(messages_list): optimize color conversion by eliminating string allocation
This commit is contained in:
parent
c750071e59
commit
0f8d561a23
1 changed files with 1 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ func (ml *messagesList) drawAuthor(w io.Writer, message discord.Message) {
|
|||
return r
|
||||
})
|
||||
if ok {
|
||||
foreground = tcell.GetColor(color.String())
|
||||
foreground = tcell.NewHexColor(int32(color))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue