From 54dee14e65b1090c75874ebc8f0c60cd049c409b Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 7 May 2015 00:03:26 +0200 Subject: =?UTF-8?q?vtcol.rs:=20prefer=20=E2=80=9CDebug=E2=80=9D=20over=20?= =?UTF-8?q?=E2=80=9CShow=E2=80=9D=20when=20deriving=20pretty=20printers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/vtcol.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vtcol.rs b/src/vtcol.rs index 473415b..d6b46fd 100644 --- a/src/vtcol.rs +++ b/src/vtcol.rs @@ -17,7 +17,7 @@ const PIO_CMAP : libc::c_int = 0x00004B71; /* kd.h */ const KB_101 : libc::c_char = 0x0002; /* kd.h */ const O_NOCTTY : libc::c_int = 0o0400; /* fcntl.h */ -#[derive(Show)] +#[derive(Debug)] enum Color { Black(bool), Red(bool), Green(bool), Yellow(bool), Blue(bool), Magenta(bool), Cyan(bool), White(bool), @@ -85,7 +85,7 @@ impl Color { } /* [impl Color] */ -#[derive(Show)] +#[derive(Debug)] enum Scheme<'a> { Default, SolarizedDark, @@ -114,7 +114,7 @@ extern { fn exit (code : libc::c_int) -> !; } /* struct Job -- Runtime parameters. */ -#[derive(Show)] +#[derive(Debug)] struct Job<'a> { this : String, /* argv[0] */ scheme : Scheme<'a>, /* The color scheme to switch to. */ @@ -300,7 +300,7 @@ static DUMMY_COLORS : RawPalette<'static> = [ "000000", "ffffff", "000000", "ffffff", ]; -#[derive(Copy)] +#[derive(Debug)] pub struct Palette { colors : [u8; PALETTE_BYTES] } -- cgit v1.2.3