Skip to content

Commit 1ddc2df

Browse files
committed
Drive by clippy fixes
1 parent ff0ccf3 commit 1ddc2df

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/instrumentation.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ async fn check_events_are_emitted_for_batch_execute() {
8989
#[tokio::test]
9090
async fn check_events_are_emitted_for_execute_returning_count() {
9191
let (events_to_check, mut conn) = setup_test_case().await;
92-
conn.execute_returning_count(&users::table.as_query())
92+
conn.execute_returning_count(users::table.as_query())
9393
.await
9494
.unwrap();
9595
let events = events_to_check.lock().unwrap();
@@ -162,10 +162,10 @@ async fn check_events_are_emitted_for_load_does_contain_error_for_failures() {
162162
#[tokio::test]
163163
async fn check_events_are_emitted_for_execute_returning_count_repeat_does_not_repeat_cache() {
164164
let (events_to_check, mut conn) = setup_test_case().await;
165-
conn.execute_returning_count(&users::table.as_query())
165+
conn.execute_returning_count(users::table.as_query())
166166
.await
167167
.unwrap();
168-
conn.execute_returning_count(&users::table.as_query())
168+
conn.execute_returning_count(users::table.as_query())
169169
.await
170170
.unwrap();
171171
let events = events_to_check.lock().unwrap();

tests/type_check.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ async fn test_timestamp() {
169169
type_check::<_, sql_types::Timestamp>(
170170
conn,
171171
chrono::NaiveDateTime::new(
172-
chrono::NaiveDate::from_ymd_opt(2021, 09, 27).unwrap(),
172+
chrono::NaiveDate::from_ymd_opt(2021, 9, 27).unwrap(),
173173
chrono::NaiveTime::from_hms_milli_opt(17, 44, 23, 0).unwrap(),
174174
),
175175
)
@@ -179,7 +179,7 @@ async fn test_timestamp() {
179179
#[tokio::test]
180180
async fn test_date() {
181181
let conn = &mut connection().await;
182-
type_check::<_, sql_types::Date>(conn, chrono::NaiveDate::from_ymd_opt(2021, 09, 27).unwrap())
182+
type_check::<_, sql_types::Date>(conn, chrono::NaiveDate::from_ymd_opt(2021, 9, 27).unwrap())
183183
.await;
184184
}
185185

0 commit comments

Comments
 (0)