sfackler / rust-postgres

Native PostgreSQL driver for the Rust programming language
Apache License 2.0
3.42k stars 436 forks source link

Shrink query_opt/query_one codegen size very slightly #1101

Closed novacrazy closed 5 months ago

novacrazy commented 6 months ago

Avoids needing an extra await point and shrinks the future size by around 72 bytes. Incredibly minor, but still.

Was just looking for places to shrink future sizes in my application and tried this out.

novacrazy commented 6 months ago

While this is a very small change, is there a chance it could be added?

sfackler commented 5 months ago

Rebasing should fix the build.

novacrazy commented 5 months ago

Rebased.