Skip to content

Commit dc60360

Browse files
committed
Makefile + syntax fixes
1 parent 595e368 commit dc60360

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Makefile.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ clean:
7878
clean-deps:
7979
$(MAKE) -C $(PHF_DIR) clean
8080
$(MAKE) -C $(OPENSSL_DIR) clean
81+
rm -f $(PHF_STAMP) $(OPENSSL_STAMP)
8182

8283
doc: $(OPENSSL) $(PHF)
8384
$(RUSTDOC) $(LINK_ARGS) $(POSTGRES_LIB_FILE)

src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ pub fn cancel_query<T: IntoConnectParams>(params: T, ssl: &SslMode,
409409
struct 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

Comments
 (0)