diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-09-20 13:05:55 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-09-20 16:37:15 +0200 |
| commit | 757a701c1aa2a6fb80033c7e75666661818da6f9 (patch) | |
| tree | 0415fec94d3856f4ebc97a1744cf2ba75fe8e7aa /src/syntax/mod.rs | |
| parent | e29f55bb294cc298daad97accf6d8a76976b409c (diff) | |
A New World
Diffstat (limited to 'src/syntax/mod.rs')
| -rw-r--r-- | src/syntax/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs index eb070a04..c2b06efe 100644 --- a/src/syntax/mod.rs +++ b/src/syntax/mod.rs @@ -980,7 +980,7 @@ impl NodeKind { Self::LineComment => "line comment", Self::BlockComment => "block comment", Self::Error(_, _) => "parse error", - Self::Unknown(src) => match src.as_str() { + Self::Unknown(text) => match text.as_str() { "*/" => "end of block comment", _ => "invalid token", }, @@ -1107,7 +1107,7 @@ impl Hash for NodeKind { Self::LineComment => {} Self::BlockComment => {} Self::Error(pos, msg) => (pos, msg).hash(state), - Self::Unknown(src) => src.hash(state), + Self::Unknown(text) => text.hash(state), } } } |
