Allocate with box instead of ~

This commit is contained in:
Steven Fackler 2014-04-25 21:59:44 -07:00
parent e1ebf3a953
commit ec43eb86a6

View File

@ -564,7 +564,7 @@ impl InnerPostgresConnection {
let mut conn = InnerPostgresConnection {
stream: BufferedStream::new(stream),
next_stmt_id: 0,
notice_handler: ~DefaultNoticeHandler,
notice_handler: box DefaultNoticeHandler,
notifications: RingBuf::new(),
cancel_data: PostgresCancelData { process_id: 0, secret_key: 0 },
unknown_types: HashMap::new(),