@@ -9,7 +9,7 @@ use phf::PhfMap;
99macro_rules! make_errors(
1010 ( $( $code: expr => $error: ident) ,+) => (
1111 /// SQLSTATE error codes
12- #[ deriving( ToStr , Eq , Clone , Show ) ]
12+ #[ deriving( Eq , Clone , Show ) ]
1313 #[ allow( missing_doc) ]
1414 pub enum PostgresSqlState {
1515 $( $error, ) +
@@ -352,7 +352,7 @@ make_errors!(
352352)
353353
354354/// Reasons a new Postgres connection could fail
355- #[ deriving( ToStr ) ]
355+ #[ deriving( Show ) ]
356356pub enum PostgresConnectError {
357357 /// The provided URL could not be parsed
358358 InvalidUrl ,
@@ -378,7 +378,7 @@ pub enum PostgresConnectError {
378378}
379379
380380/// Represents the position of an error in a query
381- #[ deriving( ToStr , Show ) ]
381+ #[ deriving( Show ) ]
382382pub enum PostgresErrorPosition {
383383 /// A position in the original query
384384 Position ( uint ) ,
@@ -392,7 +392,7 @@ pub enum PostgresErrorPosition {
392392}
393393
394394/// Encapsulates a Postgres error or notice.
395- #[ deriving( ToStr , Show ) ]
395+ #[ deriving( Show ) ]
396396pub struct PostgresDbError {
397397 /// The field contents are ERROR, FATAL, or PANIC (in an error message),
398398 /// or WARNING, NOTICE, DEBUG, INFO, or LOG (in a notice message), or a
@@ -496,7 +496,7 @@ impl PostgresDbError {
496496}
497497
498498/// An error encountered when communicating with the Postgres server
499- #[ deriving( ToStr , Show ) ]
499+ #[ deriving( Show ) ]
500500pub enum PostgresError {
501501 /// An error reported by the Postgres server
502502 PgDbError ( PostgresDbError ) ,
0 commit comments