Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(postgres): PgHasArrayType is not implemented for Vec<i64>
caused by launchbadge#2086 closes launchbadge#2611 seems like launchbadge#2086 fixed issue described by @Wopple by making that block of code unreachable. Not as it was stated in > Problem: PgHasArrayType was checking the application's postgres feature > Solution: only check the library's postgres feature after checking https://doc.rust-lang.org/std/macro.cfg.html > `cfg!`, unlike `#[cfg]`, does not remove any code and only evaluates > to true or false. For example, all blocks in an if/else expression > need to be valid when `cfg!` is used for the condition, regardless of > what `cfg!` is evaluating. so to my understanding it would be `true` anyway in @woople scenario
- Loading branch information