Skip to content

Commit 6557bca

Browse files
committed
more clippy
1 parent 6c18ac0 commit 6557bca

File tree

1 file changed

+4
-4
lines changed
  • postgres-derive-test/src

1 file changed

+4
-4
lines changed

Diff for: postgres-derive-test/src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ where
1616
{
1717
for &(ref val, ref repr) in checks.iter() {
1818
let stmt = conn
19-
.prepare(&*format!("SELECT {}::{}", *repr, sql_type))
19+
.prepare(&format!("SELECT {}::{}", *repr, sql_type))
2020
.unwrap();
2121
let result = conn.query_one(&stmt, &[]).unwrap().get(0);
2222
assert_eq!(val, &result);
2323

24-
let stmt = conn.prepare(&*format!("SELECT $1::{}", sql_type)).unwrap();
24+
let stmt = conn.prepare(&format!("SELECT $1::{}", sql_type)).unwrap();
2525
let result = conn.query_one(&stmt, &[val]).unwrap().get(0);
2626
assert_eq!(val, &result);
2727
}
@@ -40,12 +40,12 @@ pub fn test_type_asymmetric<T, F, S, C>(
4040
{
4141
for &(ref val, ref repr) in checks.iter() {
4242
let stmt = conn
43-
.prepare(&*format!("SELECT {}::{}", *repr, sql_type))
43+
.prepare(&format!("SELECT {}::{}", *repr, sql_type))
4444
.unwrap();
4545
let result: F = conn.query_one(&stmt, &[]).unwrap().get(0);
4646
assert!(cmp(val, &result));
4747

48-
let stmt = conn.prepare(&*format!("SELECT $1::{}", sql_type)).unwrap();
48+
let stmt = conn.prepare(&format!("SELECT $1::{}", sql_type)).unwrap();
4949
let result: F = conn.query_one(&stmt, &[val]).unwrap().get(0);
5050
assert!(cmp(val, &result));
5151
}

0 commit comments

Comments
 (0)