Add further derived trait implementations to types
Add missing Debug, Eq, Default, PartialEq, Clone, Copy derives where it
makes sense.
Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: Ib639a4995365ca3ad3cb3896dcb227663e1d1e7f
diff --git a/src/lib.rs b/src/lib.rs
index 7e8e18e..b240f95 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -433,7 +433,7 @@
/// `FFA_FEATURES` specific success argument structure. This type needs further specialization based
/// on 'FF-A function ID or Feature ID' field of the preceeding `FFA_FEATURES` request.
-#[derive(Debug, Eq, PartialEq, Clone, Copy)]
+#[derive(Debug, Eq, Default, PartialEq, Clone, Copy)]
pub struct SuccessArgsFeatures {
pub properties: [u32; 2],
}
@@ -541,7 +541,7 @@
}
/// Flags field of the FFA_MSG_SEND2 interface.
-#[derive(Debug, Eq, PartialEq, Clone, Copy)]
+#[derive(Debug, Eq, Default, PartialEq, Clone, Copy)]
pub struct MsgSend2Flags {
pub delay_schedule_receiver: bool,
}
@@ -697,7 +697,7 @@
#[derive(Debug, Eq, PartialEq, Clone, Copy)]
pub struct DirectMsg2Args(pub [u64; 14]);
-#[derive(Debug, Eq, PartialEq, Clone, Copy)]
+#[derive(Debug, Default, Eq, PartialEq, Clone, Copy)]
pub struct MsgWaitFlags {
pub retain_rx_buffer: bool,
}