mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 06:24:16 +00:00
f06c4c27ce
* Implement Clone for PoolOptions manually (#2548) Trying to derive `Clone` automatically for `PoolOptions` results in errors when `clone` is actually called. This is because the derive incorrectly determines that `Clone` is _not_ derivable due to the lack of `Clone` implementation on the `DB: Database` type parameter, even though no value of that type is actually stored in a to-be-cloned position (in fact, it's only used for the `Connection` associated type on the type parameter's `Database` trait impl). Manually implementing `Clone` side-steps this issue and insures the type is always actually cloneable. For reference: https://github.com/launchbadge/sqlx/issues/2548 * Ran 'cargo fmt' * Simplified Arc cloning |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |