diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-02-05 23:55:13 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-02-08 13:53:21 +1100 |
| commit | 8d1204a4b7c9322c873c353836238a88b78edf1b (patch) | |
| tree | 669a22f8cfc1133bf4f499324d1eee47a183db0a /src/libstd/path | |
| parent | 1fd2d7786013f98c59f099a2a0413b61a6e82d9d (diff) | |
| download | rust-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.rs | 4 |
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)) } } |
