diff --git a/src/runtime.rs b/src/runtime.rs index 2411c834..d4610bb5 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -37,6 +37,18 @@ where } } +impl std::fmt::Debug for Runtime +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 Runtime where DB: Database,