diff options
Diffstat (limited to 'src/syntax')
| -rw-r--r-- | src/syntax/ident.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/syntax/ident.rs b/src/syntax/ident.rs index 2a7df8e1..66ffb46d 100644 --- a/src/syntax/ident.rs +++ b/src/syntax/ident.rs @@ -39,12 +39,6 @@ impl Ident { } } -impl AsRef<str> for Ident { - fn as_ref(&self) -> &str { - self - } -} - impl Deref for Ident { type Target = str; @@ -53,6 +47,12 @@ impl Deref for Ident { } } +impl AsRef<str> for Ident { + fn as_ref(&self) -> &str { + self + } +} + /// Whether a string is a valid identifier. pub fn is_ident(string: &str) -> bool { let mut chars = string.chars(); |
