Skip to content

Commit 974c48b

Browse files
committed
Merge branch 'release-v0.9.1' into release
2 parents b6864b9 + fc0a80e commit 974c48b

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "postgres"
3-
version = "0.9.0"
3+
version = "0.9.1"
44
authors = ["Steven Fackler <sfackler@gmail.com>"]
55
license = "MIT"
66
description = "A native PostgreSQL driver"
77
repository = "https://github.com/sfackler/rust-postgres"
8-
documentation = "https://sfackler.github.io/rust-postgres/doc/v0.9.0/postgres"
8+
documentation = "https://sfackler.github.io/rust-postgres/doc/v0.9.1/postgres"
99
readme = "README.md"
1010
keywords = ["database", "sql"]
1111
build = "build.rs"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Rust-Postgres
22
A native PostgreSQL driver for Rust.
33

4-
Documentation is available at https://sfackler.github.io/rust-postgres/doc/v0.8.9/postgres
4+
Documentation is available at https://sfackler.github.io/rust-postgres/doc/v0.9.1/postgres
55

66
[![Build Status](https://travis-ci.org/sfackler/rust-postgres.png?branch=master)](https://travis-ci.org/sfackler/rust-postgres) [![Latest Version](https://img.shields.io/crates/v/postgres.svg)](https://crates.io/crates/postgres)
77

88
You can integrate Rust-Postgres into your project through the [releases on crates.io](https://crates.io/crates/postgres):
99
```toml
1010
# Cargo.toml
1111
[dependencies]
12-
postgres = "0.8"
12+
postgres = "0.9"
1313
```
1414

1515
## Overview

src/lib.rs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
//! }
4343
//! }
4444
//! ```
45-
#![doc(html_root_url="https://sfackler.github.io/rust-postgres/doc/v0.9.0")]
45+
#![doc(html_root_url="https://sfackler.github.io/rust-postgres/doc/v0.9.1")]
4646
#![warn(missing_docs)]
4747

4848
extern crate bufstream;
@@ -467,9 +467,19 @@ pub enum SslMode {
467467
/// The connection will not use SSL.
468468
None,
469469
/// The connection will use SSL if the backend supports it.
470-
Prefer(Box<NegotiateSsl>),
470+
Prefer(Box<NegotiateSsl+std::marker::Sync+Send>),
471471
/// The connection must use SSL.
472-
Require(Box<NegotiateSsl>),
472+
Require(Box<NegotiateSsl+std::marker::Sync+Send>),
473+
}
474+
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+
}
473483
}
474484

475485
#[derive(Clone)]

0 commit comments

Comments
 (0)