Skip to content

Commit 8db34fb

Browse files
committed
fix clippy warning (redundant closure)
1 parent 6eca2de commit 8db34fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data-store/src/store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ impl diesel::r2d2::CustomizeConnection<PgConnection, diesel::r2d2::Error> for Se
532532
// Use the connection to execute your custom SQL command
533533
diesel::sql_query(format!("SET search_path TO {};", *self.schema))
534534
.execute(conn)
535-
.map_err(|e| diesel::r2d2::Error::QueryError(e))?;
535+
.map_err(diesel::r2d2::Error::QueryError)?;
536536
Ok(())
537537
}
538538
}

0 commit comments

Comments
 (0)