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

Commit 0fa90334 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add get() method to declare_binder_enum" into main

parents cce29be7 75a50460
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1160,6 +1160,12 @@ macro_rules! declare_binder_enum {
            pub const fn enum_values() -> [Self; $size] {
                [$(Self::$name),*]
            }

            #[inline(always)]
            #[allow(missing_docs)]
            pub const fn get(&self) -> $backing {
                self.0
            }
        }

        impl std::fmt::Debug for $enum {