sfackler / rust-postgres

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

Shrink query_opt/query_one codegen size very slightly #1101

Closed novacrazy closed 8 months ago

novacrazy commented 9 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 9 months ago

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

sfackler commented 9 months ago

Rebasing should fix the build.

novacrazy commented 8 months ago

Rebased.