edgedb / edgedb-rust

The official Rust binding for EdgeDB
https://edgedb.com
Apache License 2.0
209 stars 26 forks source link

Fix lints suggested by clippy #309

Closed aljazerzen closed 3 months ago

aljazerzen commented 3 months ago

To be more specific, I've only fixed stuff that has actual impact on the performance or is a severe anti-pattern in idiomatic Rust.

Command used:

cargo clippy --features=unstable --tests -- \
-A clippy::collapsible_if \
-A clippy::derive_partial_eq_without_eq \
-A clippy::zero_ptr \
-A clippy::manual_strip \
-A clippy::new_ret_no_self \
-A clippy::type_complexity \
-A clippy::vec_init_then_push \
-A clippy::while_let_on_iterator \
-A clippy::useless_format \
-A clippy::too_many_arguments \
-A clippy::clone_on_copy