Skip to content

Commit 481a4e1

Browse files
committed
Less reflection
1 parent b15716c commit 481a4e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/types/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static RANGE_EMPTY: i8 = 0b0000_0001;
7777
macro_rules! make_postgres_type(
7878
($($doc:attr $oid:ident => $variant:ident $(member $member:ident)*),+) => (
7979
/// A Postgres type
80-
#[deriving(Eq)]
80+
#[deriving(Eq, Show)]
8181
pub enum PostgresType {
8282
$(
8383
$doc
@@ -222,7 +222,7 @@ macro_rules! check_types(
222222
($($expected:pat)|+, $actual:ident) => (
223223
match $actual {
224224
$(&$expected)|+ => (),
225-
actual => fail!("Invalid Postgres type {:?}", actual)
225+
actual => fail!("Invalid Postgres type {}", *actual)
226226
}
227227
)
228228
)

0 commit comments

Comments
 (0)