From 88ae9e8a4beb7f9e39b415e313c679e3787b9b14 Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Wed, 3 Jan 2024 17:25:57 +0000 Subject: [PATCH] Fix clippy warnings --- src/odbc.rs | 4 ++-- src/pg.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/odbc.rs b/src/odbc.rs index d921278..66fc139 100644 --- a/src/odbc.rs +++ b/src/odbc.rs @@ -46,8 +46,8 @@ pub fn connect(opts: &Opts) -> std::result::Result>, const BATCH_SIZE: u32 = 100000; -fn execute_statement<'env>( - conn: &Connection<'env>, +fn execute_statement( + conn: &Connection, sql_query: &str, ) -> Result>, DbError> { let mut results: Vec> = Vec::new(); diff --git a/src/pg.rs b/src/pg.rs index fcb4887..f987c65 100644 --- a/src/pg.rs +++ b/src/pg.rs @@ -103,7 +103,7 @@ impl ServerCertVerifier for PassEverythingVerifier { pub fn rewrite_connection_string(opts: &mut Opts) -> std::result::Result<(), DbError> { let parsed = Url::parse(&opts.connection_string)?; // these are the ones accepted by tokio_postgres - if !vec!["postgres", "postgresql"].contains(&parsed.scheme()) { + if !["postgres", "postgresql"].contains(&parsed.scheme()) { warn!( "Non-standard scheme ({}), but we assume that it's a Postgres Connection URL", parsed.scheme()