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()