summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-05-07 00:03:26 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2015-05-07 00:03:26 +0200
commit54dee14e65b1090c75874ebc8f0c60cd049c409b (patch)
tree797587ede7a96769d6100466769a587253830861
parent23e48e143ae67574e6d3739e14c9e178d5ba2b11 (diff)
downloadvtcol-54dee14e65b1090c75874ebc8f0c60cd049c409b.tar.gz
vtcol.rs: prefer “Debug” over “Show” when deriving pretty printers
-rw-r--r--src/vtcol.rs8
1 files 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]
}