about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-02-07 20:46:30 -0800
committerbors <bors@rust-lang.org>2014-02-07 20:46:30 -0800
commitdde2e0b3865ba040261d2078db371adbefb32506 (patch)
treef7e98095e05ec7f5be10dd73f7e307f3e0921c5d /src/libsyntax/parse
parent80c6c73647cc3294c587d8089d6628d8969f0b71 (diff)
parentb89afe2af7bdd9b65836b278c6e0322a8f91fb07 (diff)
downloadrust-dde2e0b3865ba040261d2078db371adbefb32506.tar.gz
rust-dde2e0b3865ba040261d2078db371adbefb32506.zip
auto merge of #12066 : huonw/rust/show2, r=alexcrichton
- Convert the formatting traits to `&self` rather than `_: &Self`
- Rejig `syntax::ext::{format,deriving}` a little in preparation
- Implement `#[deriving(Show)]`
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 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())
     }
 }