We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b15716c commit 481a4e1Copy full SHA for 481a4e1
1 file changed
src/types/mod.rs
@@ -77,7 +77,7 @@ static RANGE_EMPTY: i8 = 0b0000_0001;
77
macro_rules! make_postgres_type(
78
($($doc:attr $oid:ident => $variant:ident $(member $member:ident)*),+) => (
79
/// A Postgres type
80
- #[deriving(Eq)]
+ #[deriving(Eq, Show)]
81
pub enum PostgresType {
82
$(
83
$doc
@@ -222,7 +222,7 @@ macro_rules! check_types(
222
($($expected:pat)|+, $actual:ident) => (
223
match $actual {
224
$(&$expected)|+ => (),
225
- actual => fail!("Invalid Postgres type {:?}", actual)
+ actual => fail!("Invalid Postgres type {}", *actual)
226
}
227
)
228
0 commit comments