summaryrefslogtreecommitdiff
path: root/common/rust/src/payloads.rs
diff options
context:
space:
mode:
Diffstat (limited to 'common/rust/src/payloads.rs')
-rw-r--r--common/rust/src/payloads.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/rust/src/payloads.rs b/common/rust/src/payloads.rs
index 38d7529..4f70b45 100644
--- a/common/rust/src/payloads.rs
+++ b/common/rust/src/payloads.rs
@@ -186,7 +186,8 @@ pub enum CacheData {
code: String,
},
InteractionCreate {
- interaction: Interaction,
+ // boxed to avoid a large difference size between variants (https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant)
+ interaction: Box<Interaction>,
},
MessageCreate {
message: Message,