Implementing Display for SignedOp
This commit is contained in:
@@ -123,6 +123,12 @@ pub struct SignedOp {
|
|||||||
pub depends_on: Vec<SignedDigest>,
|
pub depends_on: Vec<SignedDigest>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Display for SignedOp {
|
||||||
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
|
write!(f, "SignedOp({})", self)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl SignedOp {
|
impl SignedOp {
|
||||||
pub fn id(&self) -> OpId {
|
pub fn id(&self) -> OpId {
|
||||||
self.inner.id
|
self.inner.id
|
||||||
|
|||||||
Reference in New Issue
Block a user