@@ -409,7 +409,7 @@ pub fn cancel_query<T: IntoConnectParams>(params: T, ssl: &SslMode,
409409struct InnerPostgresConnection {
410410 stream : BufferedStream < MaybeSslStream < InternalStream > > ,
411411 next_stmt_id : uint ,
412- notice_handler : Box < PostgresNoticeHandler : Send > ,
412+ notice_handler : Box < PostgresNoticeHandler + Send > ,
413413 notifications : RingBuf < PostgresNotification > ,
414414 cancel_data : PostgresCancelData ,
415415 unknown_types : HashMap < Oid , String > ,
@@ -570,8 +570,8 @@ impl InnerPostgresConnection {
570570 }
571571 }
572572
573- fn set_notice_handler ( & mut self , handler : Box < PostgresNoticeHandler : Send > )
574- -> Box < PostgresNoticeHandler : Send > {
573+ fn set_notice_handler ( & mut self , handler : Box < PostgresNoticeHandler + Send > )
574+ -> Box < PostgresNoticeHandler + Send > {
575575 mem:: replace ( & mut self . notice_handler , handler)
576576 }
577577
@@ -772,8 +772,8 @@ impl PostgresConnection {
772772 }
773773
774774 /// Sets the notice handler for the connection, returning the old handler.
775- pub fn set_notice_handler ( & self , handler : Box < PostgresNoticeHandler : Send > )
776- -> Box < PostgresNoticeHandler : Send > {
775+ pub fn set_notice_handler ( & self , handler : Box < PostgresNoticeHandler + Send > )
776+ -> Box < PostgresNoticeHandler + Send > {
777777 self . conn . borrow_mut ( ) . set_notice_handler ( handler)
778778 }
779779
0 commit comments