summaryrefslogtreecommitdiffstats
path: root/vendor/derivative/doc/debug-transparent-orig.rs
blob: 387ab7f741095f07c50439ef36eda01e4116f8d0 (plain)
1
2
3
4
5
6
7
8
# use std::fmt;
pub struct Wrapping<T>(pub T);

impl<T: fmt::Debug> fmt::Debug for Wrapping<T> {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        self.0.fmt(f)
    }
}