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

Commit 708d08c0 authored by Jakob Vukalovic's avatar Jakob Vukalovic
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: Ief378cdd5c9c63f9a01b37a9ef080b90eaee7631
Ignore-AOSP-First: This is a cherry-pick from AOSP because changes to
Rust crates are not automerged from AOSP.

Change-Id: Ib00d6cf4c55ce69481aab277ae86365aac3eaa8f
parent 0a4cba03
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;