Skip to content

Commit 37b36e6

Browse files
committed
Implement Debug for SslMode
1 parent 5758ccc commit 37b36e6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/lib.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,16 @@ pub enum SslMode {
472472
Require(Box<NegotiateSsl+std::marker::Sync+Send>),
473473
}
474474

475+
impl fmt::Debug for SslMode {
476+
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
477+
match *self {
478+
SslMode::None => fmt.write_str("None"),
479+
SslMode::Prefer(..) => fmt.write_str("Prefer"),
480+
SslMode::Require(..) => fmt.write_str("Require"),
481+
}
482+
}
483+
}
484+
475485
#[derive(Clone)]
476486
struct CachedStatement {
477487
name: String,

0 commit comments

Comments
 (0)