diff options
| author | bors <bors@rust-lang.org> | 2014-02-07 20:46:30 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-02-07 20:46:30 -0800 |
| commit | dde2e0b3865ba040261d2078db371adbefb32506 (patch) | |
| tree | f7e98095e05ec7f5be10dd73f7e307f3e0921c5d /src/libstd/path | |
| parent | 80c6c73647cc3294c587d8089d6628d8969f0b71 (diff) | |
| parent | b89afe2af7bdd9b65836b278c6e0322a8f91fb07 (diff) | |
| download | rust-dde2e0b3865ba040261d2078db371adbefb32506.tar.gz rust-dde2e0b3865ba040261d2078db371adbefb32506.zip | |
auto merge of #12066 : huonw/rust/show2, r=alexcrichton
- Convert the formatting traits to `&self` rather than `_: &Self`
- Rejig `syntax::ext::{format,deriving}` a little in preparation
- Implement `#[deriving(Show)]`
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)) } } |
