impl fmt::Debug for Runtime

This commit is contained in:
Aleksey Kladov 2018-10-16 11:47:40 +03:00
parent a128861a2c
commit 47e87e0bc2

View file

@ -37,6 +37,18 @@ where
}
}
impl<DB> std::fmt::Debug for Runtime<DB>
where
DB: Database,
{
fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
fmt.debug_struct("Runtime")
.field("id", &self.id())
.field("revision", &self.current_revision())
.finish()
}
}
impl<DB> Runtime<DB>
where
DB: Database,