File tree Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ save_registry: &SAVE_REGISTRY
99 - /usr/local/cargo/registry/index
1010
1111deps_key : &DEPS_KEY
12- key : deps-1.19 .0-{{ checksum "Cargo.lock" }}-2
12+ key : deps-1.31 .0-{{ checksum "Cargo.lock" }}-2
1313
1414restore_deps : &RESTORE_DEPS
1515 restore_cache :
@@ -25,9 +25,8 @@ save_deps: &SAVE_DEPS
2525version : 2
2626jobs :
2727 build :
28- working_directory : ~/build
2928 docker :
30- - image : rust:1.19 .0
29+ - image : rust:1.31 .0
3130 - image : postgres:10.0
3231 environment :
3332 POSTGRES_PASSWORD : password
Original file line number Diff line number Diff line change 22name = " r2d2_postgres"
33version = " 0.14.0"
44authors = [" Steven Fackler <sfackler@gmail.com>" ]
5+ edition = " 2018"
56license = " MIT"
67description = " Postgres support for the r2d2 connection pool"
78repository = " https://github.com/sfackler/r2d2-postgres"
Original file line number Diff line number Diff line change 11//! Postgres support for the `r2d2` connection pool.
22#![ doc( html_root_url="https://docs.rs/r2d2_postgres/0.14" ) ]
33#![ warn( missing_docs) ]
4- pub extern crate r2d2;
5- pub extern crate postgres;
6- extern crate postgres_shared;
4+ pub use r2d2;
5+ pub use postgres;
76
87use postgres:: { Connection , Error , Result } ;
98use postgres:: params:: { ConnectParams , IntoConnectParams } ;
@@ -15,9 +14,9 @@ pub enum TlsMode {
1514 /// Like `postgres::TlsMode::None`.
1615 None ,
1716 /// Like `postgres::TlsMode::Prefer`.
18- Prefer ( Box < TlsHandshake + Sync + Send > ) ,
17+ Prefer ( Box < dyn TlsHandshake + Sync + Send > ) ,
1918 /// Like `postgres::TlsMode::Require`.
20- Require ( Box < TlsHandshake + Sync + Send > ) ,
19+ Require ( Box < dyn TlsHandshake + Sync + Send > ) ,
2120}
2221
2322/// An `r2d2::ManageConnection` for `postgres::Connection`s.
Original file line number Diff line number Diff line change 1- extern crate postgres ;
2- extern crate r2d2;
3- extern crate r2d2_postgres ;
1+
2+ use r2d2;
3+
44
55use std:: sync:: mpsc;
66use std:: thread;
You can’t perform that action at this time.
0 commit comments