David Tolnay | cb1b85f | 2017-06-03 16:40:35 -0700 | [diff] [blame] | 1 | macro_rules! forward_fmt { |
2 | ($tr:ident for $ty:ident) => { | ||||
3 | impl ::std::fmt::$tr for $ty { | ||||
4 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { | ||||
5 | ::std::fmt::$tr::fmt(&self.0, f) | ||||
6 | } | ||||
7 | } | ||||
8 | } | ||||
9 | } |