diff options
author | Markus Westerlind <marwes91@gmail.com> | 2018-02-20 13:13:37 +0100 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2018-02-20 07:13:37 -0500 |
commit | 597bf04a56d43aa9c0eb0f8fbb90c9d51c53656c (patch) | |
tree | cfb92833b26657569606d9682e05aca61bcc4d34 /termcolor | |
parent | c78ab9e66970803e17a688990e3c30722d9c97cc (diff) |
termcolor: add ?Sized bound for &mut T impl
Diffstat (limited to 'termcolor')
-rw-r--r-- | termcolor/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/termcolor/src/lib.rs b/termcolor/src/lib.rs index 7b90851a..81825898 100644 --- a/termcolor/src/lib.rs +++ b/termcolor/src/lib.rs @@ -104,7 +104,7 @@ pub trait WriteColor: io::Write { fn reset(&mut self) -> io::Result<()>; } -impl<'a, T: WriteColor> WriteColor for &'a mut T { +impl<'a, T: ?Sized + WriteColor> WriteColor for &'a mut T { fn supports_color(&self) -> bool { (&**self).supports_color() } fn set_color(&mut self, spec: &ColorSpec) -> io::Result<()> { (&mut **self).set_color(spec) |