From 1de4b65d2a88e88201026485f9622916c5717555 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 10 May 2014 14:05:06 -0700 Subject: Updates with core::fmt changes 1. Wherever the `buf` field of a `Formatter` was used, the `Formatter` is used instead. 2. The usage of `write_fmt` is minimized as much as possible, the `write!` macro is preferred wherever possible. 3. Usage of `fmt::write` is minimized, favoring the `write!` macro instead. --- src/libsyntax/parse/token.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 68ce8cb2bc1..5dfd18392a9 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -594,7 +594,7 @@ impl BytesContainer for InternedString { impl fmt::Show for InternedString { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f.buf, "{}", self.string.as_slice()) + write!(f, "{}", self.string.as_slice()) } } -- cgit 1.4.1-3-g733a5