From 6fbcd2695736a359331f3b70ea44c8edfe531c9e Mon Sep 17 00:00:00 2001 From: valkyrie_pilot Date: Sat, 8 Jun 2024 00:28:31 -0600 Subject: [PATCH] fix(model): Derive Copy on PermissionOverwrite (#2351) Permission overwrites are very small stack allocatables. They should be Copy. --- twilight-model/src/channel/permission_overwrite.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twilight-model/src/channel/permission_overwrite.rs b/twilight-model/src/channel/permission_overwrite.rs index dc1f77ac0bd..f05b8d7c4c5 100644 --- a/twilight-model/src/channel/permission_overwrite.rs +++ b/twilight-model/src/channel/permission_overwrite.rs @@ -5,7 +5,7 @@ use crate::{ use serde::{Deserialize, Serialize}; /// Permission overwrite data for a role or member. -#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)] +#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)] pub struct PermissionOverwrite { pub allow: Permissions, pub deny: Permissions,