Skip to content

Commit

Permalink
fix(model): Derive Copy on PermissionOverwrite (#2351)
Browse files Browse the repository at this point in the history
Permission overwrites are very small stack allocatables. They should be
Copy.
  • Loading branch information
randomairborne committed Jun 8, 2024
1 parent 438ace0 commit 6fbcd26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twilight-model/src/channel/permission_overwrite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6fbcd26

Please sign in to comment.