Fix clippy warnings

This commit is contained in:
gwenn
2018-05-04 19:55:55 +02:00
parent 361d4ca602
commit 994d40da26
13 changed files with 33 additions and 35 deletions

View File

@@ -109,7 +109,7 @@ impl<'conn> Transaction<'conn> {
conn.execute_batch(query)
.map(move |_| {
Transaction {
conn: conn,
conn,
drop_behavior: DropBehavior::Rollback,
committed: false,
}
@@ -227,9 +227,9 @@ impl<'conn> Savepoint<'conn> {
conn.execute_batch(&format!("SAVEPOINT {}", name))
.map(|_| {
Savepoint {
conn: conn,
name: name,
depth: depth,
conn,
name,
depth,
drop_behavior: DropBehavior::Rollback,
committed: false,
}