File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,5 +18,5 @@ name = "test"
1818path = " tests/test.rs"
1919
2020[dependencies ]
21- r2d2 = " 0.3 "
21+ r2d2 = " 0.4 "
2222postgres = " 0.5"
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ impl error::Error for Error {
6161/// let config = Default::default();
6262/// let manager = PostgresConnectionManager::new("postgres://postgres@localhost",
6363/// SslMode::None);
64- /// let error_handler = r2d2::LoggingErrorHandler;
64+ /// let error_handler = Box::new( r2d2::LoggingErrorHandler) ;
6565/// let pool = Arc::new(r2d2::Pool::new(config, manager, error_handler).unwrap());
6666///
6767/// for i in 0..10i32 {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ fn test_basic() {
1717 pool_size : 2 ,
1818 ..Default :: default ( )
1919 } ;
20- let handler = r2d2:: NoopErrorHandler ;
20+ let handler = Box :: new ( r2d2:: NoopErrorHandler ) ;
2121 let pool = Arc :: new ( r2d2:: Pool :: new ( config, manager, handler) . unwrap ( ) ) ;
2222
2323 let ( s1, r1) = mpsc:: channel ( ) ;
@@ -53,7 +53,7 @@ fn test_is_valid() {
5353 test_on_check_out : true ,
5454 ..Default :: default ( )
5555 } ;
56- let handler = r2d2:: NoopErrorHandler ;
56+ let handler = Box :: new ( r2d2:: NoopErrorHandler ) ;
5757 let pool = r2d2:: Pool :: new ( config, manager, handler) . unwrap ( ) ;
5858
5959 pool. get ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments