Skip to content

Commit

Permalink
refactor: Resolve cargo check warnings in postgres examples
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Potts <[email protected]>
  • Loading branch information
iamjpotts authored and abonander committed Jul 11, 2024
1 parent 22e52c1 commit ba1b2f9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion examples/postgres/axum-social-with-tests/tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ impl RequestBuilderExt for request::Builder {
}
}

#[track_caller]
pub async fn response_json(resp: &mut Response<BoxBody>) -> serde_json::Value {
assert_eq!(
resp.headers()
Expand Down
2 changes: 1 addition & 1 deletion examples/postgres/files/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use sqlx::{query_file, query_file_as, query_file_unchecked, FromRow, PgPool};
use sqlx::{query_file, query_file_as, FromRow, PgPool};
use std::fmt::{Display, Formatter};

#[derive(FromRow)]
Expand Down
2 changes: 0 additions & 2 deletions examples/postgres/listen/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use futures::StreamExt;
use futures::TryStreamExt;
use sqlx::postgres::PgListener;
use sqlx::{Executor, PgPool};
use std::pin;
use std::pin::pin;
use std::sync::atomic::{AtomicI64, Ordering};
use std::time::Duration;
Expand Down

0 comments on commit ba1b2f9

Please sign in to comment.