Skip to content

Commit 0d78856

Browse files
committed
Update for ToStr removal
1 parent 9b81b55 commit 0d78856

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/error.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use phf::PhfMap;
99
macro_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)]
356356
pub 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)]
382382
pub 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)]
396396
pub 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)]
500500
pub enum PostgresError {
501501
/// An error reported by the Postgres server
502502
PgDbError(PostgresDbError),

submodules/rust-openssl

Submodule rust-openssl updated from 13e7cdb to c3cf00e

0 commit comments

Comments
 (0)