about summary refs log tree commit diff
path: root/src/libstd/path
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/libstd/path
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/libstd/path')
-rw-r--r--src/libstd/path/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/path/mod.rs b/src/libstd/path/mod.rs
index 3af42db194e..18f28994cba 100644
--- a/src/libstd/path/mod.rs
+++ b/src/libstd/path/mod.rs
@@ -494,8 +494,8 @@ pub struct Display<'a, P> {
 }
 
 impl<'a, P: GenericPath> fmt::Show for Display<'a, P> {
-    fn fmt(d: &Display<P>, f: &mut fmt::Formatter) -> fmt::Result {
-        d.with_str(|s| f.pad(s))
+    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+        self.with_str(|s| f.pad(s))
     }
 }