Implement std::fmt::Pointer for ExternRef (#4504)

This commit is contained in:
Nick Fitzgerald
2022-07-21 16:16:23 -07:00
committed by GitHub
parent b24c561ceb
commit 35b750ab9a
2 changed files with 12 additions and 0 deletions

View File

@@ -100,3 +100,9 @@ impl ExternRef {
externref_ptr as usize
}
}
impl std::fmt::Pointer for ExternRef {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
std::fmt::Pointer::fmt(&self.inner, f)
}
}