about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2017-01-27 11:00:10 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2017-02-28 22:13:37 +0000
commitabdc68973ea5961c3e942c7176c2894d00c547d7 (patch)
tree076415345c5fc084c1532acef5e09ae00fb05e26 /src/libsyntax/parse
parentd09e512158dcc86ad6e41231537ce960f3b2e918 (diff)
downloadrust-abdc68973ea5961c3e942c7176c2894d00c547d7.tar.gz
rust-abdc68973ea5961c3e942c7176c2894d00c547d7.zip
Clean up `ext::tt::transcribe::TtFrame`, rename to `Frame`.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/token.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 0f0c6d0ca83..cb052b9593d 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -50,8 +50,8 @@ pub enum DelimToken {
 }
 
 impl DelimToken {
-    pub fn len(&self) -> u32 {
-        if *self == NoDelim { 0 } else { 1 }
+    pub fn len(self) -> usize {
+        if self == NoDelim { 0 } else { 1 }
     }
 }