blob: 89eb554c6c66f18cd0f0e3c7aa10c58fbeb39ed5 [file] [log] [blame]
David Tolnaycb1b85f2017-06-03 16:40:35 -07001macro_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}