identifiers: Fix Debug output of opaque identifier types
This commit is contained in:
parent
5d27a36cb1
commit
4f3eaa83a0
@ -205,7 +205,7 @@ macro_rules! opaque_identifier {
|
||||
|
||||
impl std::fmt::Debug for $id {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.write_str(self.as_ref())
|
||||
<str as std::fmt::Debug>::fmt(self.as_str(), f)
|
||||
}
|
||||
}
|
||||
|
||||
@ -338,7 +338,7 @@ macro_rules! opaque_identifier_validated {
|
||||
|
||||
impl std::fmt::Debug for $id {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.write_str(self.as_ref())
|
||||
<str as std::fmt::Debug>::fmt(self.as_str(), f)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user