To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

Commit c6c7c7d3 authored by qinsoon's avatar qinsoon
Browse files

fix bug in previous commits

parent 8825e1d3
......@@ -52,7 +52,10 @@ fn is_precolored(reg: MuID) -> bool {
fn is_usable(reg: MuID) -> bool {
if backend::all_usable_regs().iter().any(|x| == reg) {
if backend::all_usable_regs()
.any(|x| == backend::get_color_for_precolored(reg))
} else {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment