Serenity's future sizes are quite large, leading to clippy::large_futures warnings and suboptimal performance.
This is a list of known problems leading to these large futures.
- The
Http interface is forced to keep builders in futures even after serializing them, due to the &impl serde::Serialize signature.
- Some functions take ownership of a type, then only use a couple fields even though it's carrying over an await point.
-
- This probably requires enabling
struct_lit_single_line in rustfmt settings.
- More to be found
Serenity's future sizes are quite large, leading to
clippy::large_futureswarnings and suboptimal performance.This is a list of known problems leading to these large futures.
Httpinterface is forced to keep builders in futures even after serializing them, due to the&impl serde::Serializesignature.struct_lit_single_linein rustfmt settings.