summaryrefslogtreecommitdiff
path: root/src/syntax/ident.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-02-11 17:33:13 +0100
committerLaurenz <laurmaedje@gmail.com>2021-02-11 17:33:13 +0100
commit1711b67877ce5c290e049775c340c9324f15341e (patch)
tree92d6ff7285cdc2d694ccfdf733ce8757866636ec /src/syntax/ident.rs
parentf9197dcfef11c4c054a460c80ff6023dae6f1f2a (diff)
Move all pretty printing into one module and pretty print values 🦋
Diffstat (limited to 'src/syntax/ident.rs')
-rw-r--r--src/syntax/ident.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/syntax/ident.rs b/src/syntax/ident.rs
index 731a2789..26c46b98 100644
--- a/src/syntax/ident.rs
+++ b/src/syntax/ident.rs
@@ -3,7 +3,6 @@ use std::ops::Deref;
use unicode_xid::UnicodeXID;
use super::Span;
-use crate::pretty::{Pretty, Printer};
/// An Unicode identifier with a few extra permissible characters.
///
@@ -53,12 +52,6 @@ impl Deref for Ident {
}
}
-impl Pretty for Ident {
- fn pretty(&self, p: &mut Printer) {
- p.push_str(self.as_str());
- }
-}
-
/// Whether a string is a valid identifier.
pub fn is_ident(string: &str) -> bool {
let mut chars = string.chars();