Skip to content

Commit dde0f64

Browse files
committed
Show -> Debug
1 parent f38636b commit dde0f64

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/error.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ make_errors! {
374374
}
375375

376376
/// Reasons a new Postgres connection could fail
377-
#[derive(Clone, PartialEq, Eq, Show)]
377+
#[derive(Clone, PartialEq, Eq, Debug)]
378378
pub enum ConnectError {
379379
/// The provided URL could not be parsed
380380
InvalidUrl(String),
@@ -453,7 +453,7 @@ impl error::FromError<SslError> for ConnectError {
453453
}
454454

455455
/// Represents the position of an error in a query
456-
#[derive(Clone, PartialEq, Eq, Show)]
456+
#[derive(Clone, PartialEq, Eq, Debug)]
457457
pub enum ErrorPosition {
458458
/// A position in the original query
459459
Normal(usize),
@@ -467,7 +467,7 @@ pub enum ErrorPosition {
467467
}
468468

469469
/// Encapsulates a Postgres error or notice.
470-
#[derive(Clone, PartialEq, Eq, Show)]
470+
#[derive(Clone, PartialEq, Eq, Debug)]
471471
pub struct DbError {
472472
/// The field contents are ERROR, FATAL, or PANIC (in an error message),
473473
/// or WARNING, NOTICE, DEBUG, INFO, or LOG (in a notice message), or a
@@ -584,7 +584,7 @@ impl error::Error for DbError {
584584
}
585585

586586
/// An error encountered when communicating with the Postgres server
587-
#[derive(Clone, PartialEq, Eq, Show)]
587+
#[derive(Clone, PartialEq, Eq, Debug)]
588588
pub enum Error {
589589
/// An error reported by the Postgres server
590590
DbError(DbError),

src/lib.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const TYPEINFO_QUERY: &'static str = "t";
106106
pub type Result<T> = result::Result<T, Error>;
107107

108108
/// Specifies the target server to connect to.
109-
#[derive(Clone, Show)]
109+
#[derive(Clone, Debug)]
110110
pub enum ConnectTarget {
111111
/// Connect via TCP to the specified host.
112112
Tcp(String),
@@ -115,7 +115,7 @@ pub enum ConnectTarget {
115115
}
116116

117117
/// Authentication information
118-
#[derive(Clone, Show)]
118+
#[derive(Clone, Debug)]
119119
pub struct UserInfo {
120120
/// The username
121121
pub user: String,
@@ -124,7 +124,7 @@ pub struct UserInfo {
124124
}
125125

126126
/// Information necessary to open a new connection to a Postgres server.
127-
#[derive(Clone, Show)]
127+
#[derive(Clone, Debug)]
128128
pub struct ConnectParams {
129129
/// The target server
130130
pub target: ConnectTarget,
@@ -206,7 +206,7 @@ pub trait NoticeHandler: Send {
206206
/// A notice handler which logs at the `info` level.
207207
///
208208
/// This is the default handler used by a `Connection`.
209-
#[derive(Copy, Show)]
209+
#[derive(Copy, Debug)]
210210
pub struct DefaultNoticeHandler;
211211

212212
impl NoticeHandler for DefaultNoticeHandler {
@@ -216,7 +216,7 @@ impl NoticeHandler for DefaultNoticeHandler {
216216
}
217217

218218
/// An asynchronous notification
219-
#[derive(Clone, Show)]
219+
#[derive(Clone, Debug)]
220220
pub struct Notification {
221221
/// The process ID of the notifying backend process
222222
pub pid: u32,
@@ -330,7 +330,7 @@ impl<'conn> Notifications<'conn> {
330330
}
331331

332332
/// Contains information necessary to cancel queries for a session
333-
#[derive(Copy, Clone, Show)]
333+
#[derive(Copy, Clone, Debug)]
334334
pub struct CancelData {
335335
/// The process ID of the session
336336
pub process_id: u32,
@@ -1129,7 +1129,7 @@ impl Connection {
11291129
}
11301130

11311131
/// Specifies the SSL support requested for a new connection
1132-
#[derive(Show)]
1132+
#[derive(Debug)]
11331133
pub enum SslMode {
11341134
/// The connection will not use SSL
11351135
None,
@@ -1499,7 +1499,7 @@ impl<'conn> Statement<'conn> {
14991499
}
15001500

15011501
/// Information about a column of the result of a query.
1502-
#[derive(PartialEq, Eq, Clone, Show)]
1502+
#[derive(PartialEq, Eq, Clone, Debug)]
15031503
pub struct ResultDescription {
15041504
/// The name of the column
15051505
pub name: String,

0 commit comments

Comments
 (0)