Skip to content

Commit

Permalink
feat: derive Copy and Clone for Qualifier (#69)
Browse files Browse the repository at this point in the history
I ran into a problem, where I needed to copy the `qual` field from an
ACLEntry instance (which is borrowed), but compiler didn't allow me to
do this, because the Qualifier enum is not copyable, and in my case move
isn't possible and desirable. Deriving the Copy and Clone traits fixes
this.
  • Loading branch information
eax-ebx committed Dec 4, 2023
1 parent a7d7e6d commit 21e43a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entry.rs
Expand Up @@ -7,7 +7,7 @@ use acl_sys::{
use std::ptr::null_mut;

/// The subject of a permission grant.
#[derive(Debug, PartialEq, Eq)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum Qualifier {
/// Unrecognized/corrupt entries
Undefined,
Expand Down

0 comments on commit 21e43a2

Please sign in to comment.