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/libstd/path/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd/path') 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

, 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)) } } -- cgit 1.4.1-3-g733a5