]> git.lizzy.rs Git - rust.git/commitdiff
rollup merge of #18327 : vadimcn/17982
authorAlex Crichton <alex@alexcrichton.com>
Mon, 27 Oct 2014 16:07:47 +0000 (09:07 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 27 Oct 2014 22:12:30 +0000 (15:12 -0700)
src/libterm/win.rs

index 0aae85503d07ddaf5647950e410a1762c029f871..d4f06403c1a6e6bd02c9ffec821197f94ddc4fe1 100644 (file)
@@ -71,7 +71,8 @@ fn color_to_bits(color: color::Color) -> u16 {
 }
 
 fn bits_to_color(bits: u16) -> color::Color {
-    let color = match bits & 0x7 {
+    let bits = bits & 0x7;
+    let color = match bits {
         0 => color::BLACK,
         0x1 => color::BLUE,
         0x2 => color::GREEN,