mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-23 13:10:19 +00:00
impl fmt::Debug for Runtime
This commit is contained in:
parent
a128861a2c
commit
47e87e0bc2
1 changed files with 12 additions and 0 deletions
|
@ -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>
|
impl<DB> Runtime<DB>
|
||||||
where
|
where
|
||||||
DB: Database,
|
DB: Database,
|
||||||
|
|
Loading…
Reference in a new issue