summaryrefslogtreecommitdiff
path: root/src/syntax
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax')
-rw-r--r--src/syntax/ast.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syntax/ast.rs b/src/syntax/ast.rs
index e844f622..af7fedce 100644
--- a/src/syntax/ast.rs
+++ b/src/syntax/ast.rs
@@ -459,7 +459,7 @@ impl Shorthand {
/// Get the shorthanded character.
pub fn get(&self) -> char {
- let text = self.0.text().as_str();
+ let text = self.0.text();
Self::LIST
.iter()
.find(|&&(s, _)| s == text)