parser: debug output for Syntax/InnerSyntax are swapped

This commit is contained in:
René Kijewski 2024-08-28 18:41:09 +02:00
parent e581dc7145
commit 98b60d3d8b

View File

@ -762,14 +762,14 @@ impl Default for InnerSyntax<'static> {
}
}
impl<'a> fmt::Debug for InnerSyntax<'a> {
impl<'a> fmt::Debug for Syntax<'a> {
#[inline]
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt_syntax("Syntax", self, f)
}
}
impl<'a> fmt::Debug for Syntax<'a> {
impl<'a> fmt::Debug for InnerSyntax<'a> {
#[inline]
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt_syntax("InnerSyntax", self, f)