Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sgrebnov
Copy link
Contributor

@sgrebnov sgrebnov commented Feb 24, 2025

Fixes the following error when running clippy under Rust 1.85 (since 2025-02-17)

cargo clippy --all-targets --workspace --all-features -- -D warnings -A clippy::redundant-closure

error: useless conversion to the same type: `error::Error`
   --> crates/duckdb/src/r2d2.rs:118:31
    |
118 |           conn.execute_batch("").map_err(Into::into)
    |  _______________________________-^^^^^^^^^^^^^^^^^^^
119 | |     }
    | |____- help: consider removing
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
note: the lint level is defined here
   --> crates/duckdb/src/r2d2.rs:1:9
    |
1   | #![deny(warnings)]
    |         ^^^^^^^^
    = note: `#[deny(clippy::useless_conversion)]` implied by `#[deny(warnings)]`

error: could not compile `duckdb` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `duckdb` (lib test) due to 1 previous error

@Maxxen Maxxen merged commit 2a2a562 into duckdb:main Feb 24, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants