Skip to content

Commit 98ce0e4

Browse files
committed
Minor cleanup
1 parent d72c1d0 commit 98ce0e4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ impl InnerPostgresConnection {
486486
payload: payload
487487
}),
488488
ParameterStatus { parameter, value } =>
489-
debug!("Parameter {} = {}", parameter, value),
489+
info!("Parameter {} = {}", parameter, value),
490490
msg => return msg
491491
}
492492
}
@@ -722,7 +722,7 @@ impl PostgresConnection {
722722
/// Used with the `cancel_query` function. The object returned can be used
723723
/// to cancel any query executed by the connection it was created from.
724724
pub fn cancel_data(&self) -> PostgresCancelData {
725-
do self.conn.with_mut_ref |conn| {
725+
do self.conn.with_ref |conn| {
726726
conn.cancel_data
727727
}
728728
}
@@ -1035,7 +1035,7 @@ impl<'self> PostgresStatement for NormalPostgresStatement<'self> {
10351035
let num;
10361036
loop {
10371037
match self.conn.read_message() {
1038-
DataRow {_} => {}
1038+
DataRow { _ } => {}
10391039
ErrorResponse { fields } => {
10401040
self.conn.wait_for_ready();
10411041
return Err(PostgresDbError::new(fields));
@@ -1178,7 +1178,7 @@ impl<'self> PostgresResult<'self> {
11781178
loop {
11791179
match self.stmt.conn.read_message() {
11801180
EmptyQueryResponse |
1181-
CommandComplete {_} => {
1181+
CommandComplete { _ } => {
11821182
self.more_rows = false;
11831183
break;
11841184
},

0 commit comments

Comments
 (0)