diff --git a/Makefile.in b/Makefile.in index f6f98a68..7d8068aa 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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) diff --git a/src/lib.rs b/src/lib.rs index 3d8db502..3a2350f1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -409,7 +409,7 @@ pub fn cancel_query(params: T, ssl: &SslMode, struct InnerPostgresConnection { stream: BufferedStream>, next_stmt_id: uint, - notice_handler: Box, + notice_handler: Box, notifications: RingBuf, cancel_data: PostgresCancelData, unknown_types: HashMap, @@ -570,8 +570,8 @@ impl InnerPostgresConnection { } } - fn set_notice_handler(&mut self, handler: Box) - -> Box { + fn set_notice_handler(&mut self, handler: Box) + -> Box { 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) - -> Box { + pub fn set_notice_handler(&self, handler: Box) + -> Box { self.conn.borrow_mut().set_notice_handler(handler) }