Makefile + syntax fixes

This commit is contained in:
Steven Fackler 2014-06-16 09:20:50 -07:00
parent 595e368459
commit dc603600d1
2 changed files with 6 additions and 5 deletions

View File

@ -78,6 +78,7 @@ clean:
clean-deps:
$(MAKE) -C $(PHF_DIR) clean
$(MAKE) -C $(OPENSSL_DIR) clean
rm -f $(PHF_STAMP) $(OPENSSL_STAMP)
doc: $(OPENSSL) $(PHF)
$(RUSTDOC) $(LINK_ARGS) $(POSTGRES_LIB_FILE)

View File

@ -409,7 +409,7 @@ pub fn cancel_query<T: IntoConnectParams>(params: T, ssl: &SslMode,
struct InnerPostgresConnection {
stream: BufferedStream<MaybeSslStream<InternalStream>>,
next_stmt_id: uint,
notice_handler: Box<PostgresNoticeHandler:Send>,
notice_handler: Box<PostgresNoticeHandler+Send>,
notifications: RingBuf<PostgresNotification>,
cancel_data: PostgresCancelData,
unknown_types: HashMap<Oid, String>,
@ -570,8 +570,8 @@ impl InnerPostgresConnection {
}
}
fn set_notice_handler(&mut self, handler: Box<PostgresNoticeHandler:Send>)
-> Box<PostgresNoticeHandler:Send> {
fn set_notice_handler(&mut self, handler: Box<PostgresNoticeHandler+Send>)
-> Box<PostgresNoticeHandler+Send> {
mem::replace(&mut self.notice_handler, handler)
}
@ -772,8 +772,8 @@ impl PostgresConnection {
}
/// Sets the notice handler for the connection, returning the old handler.
pub fn set_notice_handler(&self, handler: Box<PostgresNoticeHandler:Send>)
-> Box<PostgresNoticeHandler:Send> {
pub fn set_notice_handler(&self, handler: Box<PostgresNoticeHandler+Send>)
-> Box<PostgresNoticeHandler+Send> {
self.conn.borrow_mut().set_notice_handler(handler)
}