Skip to content

Commit ec43eb8

Browse files
committed
Allocate with box instead of ~
1 parent e1ebf3a commit ec43eb8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ impl InnerPostgresConnection {
564564
let mut conn = InnerPostgresConnection {
565565
stream: BufferedStream::new(stream),
566566
next_stmt_id: 0,
567-
notice_handler: ~DefaultNoticeHandler,
567+
notice_handler: box DefaultNoticeHandler,
568568
notifications: RingBuf::new(),
569569
cancel_data: PostgresCancelData { process_id: 0, secret_key: 0 },
570570
unknown_types: HashMap::new(),

0 commit comments

Comments
 (0)