diff options
| author | n1c00o <git.n1c00o@gmail.com> | 2021-10-16 22:18:25 +0200 |
|---|---|---|
| committer | n1c00o <git.n1c00o@gmail.com> | 2021-10-16 22:18:25 +0200 |
| commit | 03908129599260587fe7b9fd8254d28ad50b8714 (patch) | |
| tree | c72ac6aa70c64f0cc0893519d7a585f9eab200d5 /common/rust/src/payloads.rs | |
| parent | 031df88b8f978a0809dc8a32f795ffebda416d20 (diff) | |
Fix some warnings
Diffstat (limited to 'common/rust/src/payloads.rs')
| -rw-r--r-- | common/rust/src/payloads.rs | 3 |
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, |
