From 481a4e1c4b46060554cc17b24bac6a70b5566b30 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sun, 9 Feb 2014 13:57:51 -0800 Subject: [PATCH] Less reflection --- src/types/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/mod.rs b/src/types/mod.rs index 2e6e8933..23cd466a 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -77,7 +77,7 @@ static RANGE_EMPTY: i8 = 0b0000_0001; macro_rules! make_postgres_type( ($($doc:attr $oid:ident => $variant:ident $(member $member:ident)*),+) => ( /// A Postgres type - #[deriving(Eq)] + #[deriving(Eq, Show)] pub enum PostgresType { $( $doc @@ -222,7 +222,7 @@ macro_rules! check_types( ($($expected:pat)|+, $actual:ident) => ( match $actual { $(&$expected)|+ => (), - actual => fail!("Invalid Postgres type {:?}", actual) + actual => fail!("Invalid Postgres type {}", *actual) } ) )