From 8d1204a4b7c9322c873c353836238a88b78edf1b Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Wed, 5 Feb 2014 23:55:13 +1100 Subject: std::fmt: convert the formatting traits to a proper self. Poly and String have polymorphic `impl`s and so require different method names. --- src/libsyntax/parse/token.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax/parse') 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()) } } -- cgit 1.4.1-3-g733a5