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

Commit 3b1ebbf3 authored by Jakob Vukalovic's avatar Jakob Vukalovic Committed by Cherrypicker Worker
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.

Test: Build
(cherry picked from https://android-review.googlesource.com/q/commit:0914969eaf6593391c8fdd75e8cade1c0efda752)
Merged-In: I67a64634a5f1bd320f983154c25ba2b7e2a813dc
Change-Id: I67a64634a5f1bd320f983154c25ba2b7e2a813dc
parent 73ef453d
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;