diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2014-11-20 15:08:02 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2014-11-26 11:42:06 -0500 |
| commit | f4e29e7e9aa1da4fc91a6074b0e4df44a2986517 (patch) | |
| tree | 0da944aff45bf45cd6e085b92aa78110d62cfb20 /src/libcore | |
| parent | 74a1041a4d7ae08d223f5ec623f6a698962d5667 (diff) | |
| download | rust-f4e29e7e9aa1da4fc91a6074b0e4df44a2986517.tar.gz rust-f4e29e7e9aa1da4fc91a6074b0e4df44a2986517.zip | |
Fixup various places that were doing `&T+'a` and do `&(T+'a)`
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/fmt/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs index 6e77b0a7c79..d2bf7f1e15a 100644 --- a/src/libcore/fmt/mod.rs +++ b/src/libcore/fmt/mod.rs @@ -85,7 +85,7 @@ pub struct Formatter<'a> { width: Option<uint>, precision: Option<uint>, - buf: &'a mut FormatWriter+'a, + buf: &'a mut (FormatWriter+'a), curarg: slice::Items<'a, Argument<'a>>, args: &'a [Argument<'a>], } @@ -565,7 +565,7 @@ impl<'a, Sized? T: Show> Show for &'a T { impl<'a, Sized? T: Show> Show for &'a mut T { fn fmt(&self, f: &mut Formatter) -> Result { (**self).fmt(f) } } -impl<'a> Show for &'a Show+'a { +impl<'a> Show for &'a (Show+'a) { fn fmt(&self, f: &mut Formatter) -> Result { (*self).fmt(f) } } @@ -724,7 +724,7 @@ macro_rules! tuple ( tuple! { T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, } -impl<'a> Show for &'a any::Any+'a { +impl<'a> Show for &'a (any::Any+'a) { fn fmt(&self, f: &mut Formatter) -> Result { f.pad("&Any") } } |
