@@ -55,14 +55,14 @@ fn main() {
5555```
5656 */
5757
58- #[ crate_id="github.com/sfackler/rust-postgres#postgres:0.0" ] ;
59- #[ crate_type="rlib" ] ;
60- #[ crate_type="dylib" ] ;
61- #[ doc( html_root_url="http://www.rust-ci.org/sfackler/rust-postgres/doc" ) ] ;
58+ #! [ crate_id="github.com/sfackler/rust-postgres#postgres:0.0" ]
59+ #! [ crate_type="rlib" ]
60+ #! [ crate_type="dylib" ]
61+ #! [ doc( html_root_url="http://www.rust-ci.org/sfackler/rust-postgres/doc" ) ]
6262
63- #[ warn( missing_doc) ] ;
63+ #! [ warn( missing_doc) ]
6464
65- #[ feature( macro_rules, struct_variant, phase) ] ;
65+ #! [ feature( macro_rules, struct_variant, phase) ]
6666
6767extern crate collections;
6868extern crate openssl;
@@ -386,7 +386,7 @@ impl Writer for InternalStream {
386386struct InnerPostgresConnection {
387387 stream : BufferedStream < InternalStream > ,
388388 next_stmt_id : uint ,
389- notice_handler : ~PostgresNoticeHandler ,
389+ notice_handler : ~PostgresNoticeHandler : Send ,
390390 notifications : RingBuf < PostgresNotification > ,
391391 cancel_data : PostgresCancelData ,
392392 unknown_types : HashMap < Oid , ~str > ,
@@ -436,7 +436,7 @@ impl InnerPostgresConnection {
436436 let mut conn = InnerPostgresConnection {
437437 stream : BufferedStream :: new ( stream) ,
438438 next_stmt_id : 0 ,
439- notice_handler : ~DefaultNoticeHandler as ~ PostgresNoticeHandler ,
439+ notice_handler : ~DefaultNoticeHandler ,
440440 notifications : RingBuf :: new ( ) ,
441441 cancel_data : PostgresCancelData { process_id : 0 , secret_key : 0 } ,
442442 unknown_types : HashMap :: new ( ) ,
@@ -551,8 +551,8 @@ impl InnerPostgresConnection {
551551 }
552552 }
553553
554- fn set_notice_handler ( & mut self , handler : ~PostgresNoticeHandler )
555- -> ~PostgresNoticeHandler {
554+ fn set_notice_handler ( & mut self , handler : ~PostgresNoticeHandler : Send )
555+ -> ~PostgresNoticeHandler : Send {
556556 mem:: replace ( & mut self . notice_handler , handler)
557557 }
558558
@@ -728,8 +728,8 @@ impl PostgresConnection {
728728 }
729729
730730 /// Sets the notice handler for the connection, returning the old handler.
731- pub fn set_notice_handler ( & self , handler : ~PostgresNoticeHandler )
732- -> ~PostgresNoticeHandler {
731+ pub fn set_notice_handler ( & self , handler : ~PostgresNoticeHandler : Send )
732+ -> ~PostgresNoticeHandler : Send {
733733 self . conn . borrow_mut ( ) . set_notice_handler ( handler)
734734 }
735735
0 commit comments