Skip to content

Commit 1c4958a

Browse files
committed
more clippy fixes
1 parent f006f6c commit 1c4958a

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

postgres-derive-test/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ where
1414
T: PartialEq + FromSqlOwned + ToSql + Sync,
1515
S: fmt::Display,
1616
{
17-
for &(ref val, ref repr) in checks.iter() {
17+
for (val, repr) in checks.iter() {
1818
let stmt = conn
1919
.prepare(&format!("SELECT {}::{}", *repr, sql_type))
2020
.unwrap();
@@ -38,7 +38,7 @@ pub fn test_type_asymmetric<T, F, S, C>(
3838
S: fmt::Display,
3939
C: Fn(&T, &F) -> bool,
4040
{
41-
for &(ref val, ref repr) in checks.iter() {
41+
for (val, repr) in checks.iter() {
4242
let stmt = conn
4343
.prepare(&format!("SELECT {}::{}", *repr, sql_type))
4444
.unwrap();

0 commit comments

Comments
 (0)