summary refs log tree commit diff
path: root/src/libsyntax/parse/token.rs
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-02-05 23:55:13 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2014-02-08 13:53:21 +1100
commit8d1204a4b7c9322c873c353836238a88b78edf1b (patch)
tree669a22f8cfc1133bf4f499324d1eee47a183db0a /src/libsyntax/parse/token.rs
parent1fd2d7786013f98c59f099a2a0413b61a6e82d9d (diff)
downloadrust-8d1204a4b7c9322c873c353836238a88b78edf1b.tar.gz
rust-8d1204a4b7c9322c873c353836238a88b78edf1b.zip
std::fmt: convert the formatting traits to a proper self.
Poly and String have polymorphic `impl`s and so require different method
names.
Diffstat (limited to 'src/libsyntax/parse/token.rs')
-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 090774ec76f..d32411b4f05 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -588,8 +588,8 @@ impl BytesContainer for InternedString {
 }
 
 impl fmt::Show for InternedString {
-    fn fmt(obj: &InternedString, f: &mut fmt::Formatter) -> fmt::Result {
-        write!(f.buf, "{}", obj.string.as_slice())
+    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+        write!(f.buf, "{}", self.string.as_slice())
     }
 }