fix ObjID's debug print not being correct

png-branch
an 2019-02-21 14:23:45 -05:00
parent 0207e47324
commit 18c221019b
1 changed files with 2 additions and 2 deletions

View File

@ -185,9 +185,9 @@ impl fmt::Debug for ObjID
{
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result
{
match self.0 {
match self.get() {
None => write!(f, "ObjID(None)"),
Some(n) => write!(f, "ObjID({})", n.get()),
Some(n) => write!(f, "ObjID({})", n),
}
}
}