Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e53ccc57 authored by Jakob Vukalovic's avatar Jakob Vukalovic Committed by Jakob Vukalović
Browse files

rust: Make AttPermissions compatible with libbitflags 2.2.1

For compatibility with the new version of libbitflags (2.2.1), implement
Copy, Clone, Debug, PartialEq, Eq for AttPermissions.

Bug: 261439617
Test: Build
Change-Id: I67a64634a5f1bd320f983154c25ba2b7e2a813dc
Merged-In: Ib00d6cf4c55ce69481aab277ae86365aac3eaa8f
parent fec3d3ff
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ bitflags! {
    ///
    /// These values are from Core Spec 5.3 Vol 3G 3.3.1.1 Characteristic Properties,
    /// and also match what Android uses in JNI.
    #[derive(Copy, Clone, Debug, PartialEq, Eq)]
    pub struct AttPermissions : u8 {
        /// Attribute can be read using READ_REQ
        const READABLE = 0x02;