Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
palfrey committed Jan 3, 2024
1 parent 0ac916b commit 4d6a566
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/odbc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ pub fn connect(opts: &Opts) -> std::result::Result<Vec<HashMap<String, String>>,

const BATCH_SIZE: u32 = 100000;

fn execute_statement<'env>(
conn: &Connection<'env>,
fn execute_statement(
conn: &Connection,
sql_query: &str,
) -> Result<Vec<HashMap<String, String>>, DbError> {
let mut results: Vec<HashMap<String, String>> = Vec::new();
Expand Down
2 changes: 1 addition & 1 deletion src/pg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4d6a566

Please sign in to comment.