Skip to content

Commit ed7f4a8

Browse files
committed
rollup merge of #18327 : vadimcn/17982
2 parents 650214b + f29535d commit ed7f4a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libterm/win.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ fn color_to_bits(color: color::Color) -> u16 {
7171
}
7272

7373
fn bits_to_color(bits: u16) -> color::Color {
74-
let color = match bits & 0x7 {
74+
let bits = bits & 0x7;
75+
let color = match bits {
7576
0 => color::BLACK,
7677
0x1 => color::BLUE,
7778
0x2 => color::GREEN,

0 commit comments

Comments
 (0)