libfdt: Make Phandle Eq, PartialEq, Ord, PartialOrd
This is required for Phandle to be used as BTreeMap's key
Bug: 277993056
Test: atest liblibfdt.integration_test
Change-Id: I6690a27ed13098898d7f403e0aefea5034699dd6
diff --git a/libs/libfdt/src/lib.rs b/libs/libfdt/src/lib.rs
index b369390..0bacdde 100644
--- a/libs/libfdt/src/lib.rs
+++ b/libs/libfdt/src/lib.rs
@@ -526,7 +526,7 @@
/// Phandle of a FDT node
#[repr(transparent)]
-#[derive(Debug, Copy, Clone, PartialEq)]
+#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)]
pub struct Phandle(u32);
impl Phandle {