summaryrefslogtreecommitdiffstats
path: root/openpgp
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-09-29 09:14:33 +0300
committerLars Wirzenius <liw@sequoia-pgp.org>2021-09-30 08:31:16 +0300
commitc8f7cba5f711666b411460fa5822e39ff5671d8a (patch)
treeda157bb79b4b336c10032ca3442b2db553dbdd32 /openpgp
parent618aa1d65d9748a0f66fbb1be0a7509544d53c2f (diff)
Allow enum variants up to 512 bytes
clippy warns if one of the variants of an enum is significantly larger than the others, as that can cause surprising memory use: an enum uses as much space as its largest variant. We have some such enums, but changing them to have variants of similar size would change the API so I've chosen to allow variants up to 512 bytes. Found by clippy lint large_enum_variant: https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
Diffstat (limited to 'openpgp')
0 files changed, 0 insertions, 0 deletions