Skip to content

Commit

Permalink
Merge pull request #24 from dpetersen/reexported-postgres
Browse files Browse the repository at this point in the history
Use reexported postgres for NoTls in examples
  • Loading branch information
sfackler authored Nov 8, 2020
2 parents ee430a7 + 0e961fa commit 2157bb7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ version: 2
jobs:
build:
docker:
- image: rust:1.40.0
- image: rust:1.42.0
- image: postgres:12
environment:
POSTGRES_PASSWORD: password
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ r2d2-postgres

```rust
use std::thread;
use postgres::{NoTls, Client};
use r2d2_postgres::PostgresConnectionManager;
use r2d2_postgres::{postgres::NoTls, PostgresConnectionManager};

fn main() {
let manager = PostgresConnectionManager::new(
Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ use r2d2::ManageConnection;
///
/// ```no_run
/// use std::thread;
/// use postgres::{NoTls, Client};
/// use r2d2_postgres::PostgresConnectionManager;
/// use r2d2_postgres::{postgres::NoTls, PostgresConnectionManager};
///
/// fn main() {
/// let manager = PostgresConnectionManager::new(
Expand Down

0 comments on commit 2157bb7

Please sign in to comment.