Skip to content

Commit 88ae9e8

Browse files
committed
Fix clippy warnings
1 parent 05d0cdc commit 88ae9e8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/odbc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ pub fn connect(opts: &Opts) -> std::result::Result<Vec<HashMap<String, String>>,
4646

4747
const BATCH_SIZE: u32 = 100000;
4848

49-
fn execute_statement<'env>(
50-
conn: &Connection<'env>,
49+
fn execute_statement(
50+
conn: &Connection,
5151
sql_query: &str,
5252
) -> Result<Vec<HashMap<String, String>>, DbError> {
5353
let mut results: Vec<HashMap<String, String>> = Vec::new();

src/pg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl ServerCertVerifier for PassEverythingVerifier {
103103
pub fn rewrite_connection_string(opts: &mut Opts) -> std::result::Result<(), DbError> {
104104
let parsed = Url::parse(&opts.connection_string)?;
105105
// these are the ones accepted by tokio_postgres
106-
if !vec!["postgres", "postgresql"].contains(&parsed.scheme()) {
106+
if !["postgres", "postgresql"].contains(&parsed.scheme()) {
107107
warn!(
108108
"Non-standard scheme ({}), but we assume that it's a Postgres Connection URL",
109109
parsed.scheme()

0 commit comments

Comments
 (0)