commit | 4fd1bd3258a39889ad6d227425c4246c61c247bc | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Thu May 09 12:47:51 2019 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Thu May 09 13:23:52 2019 -0700 |
tree | 1c68bda4fb17e739dffc0d3f66425213c86b1bb6 | |
parent | 287699d3b9709d9584439873e406e16671aef144 [diff] |
Move rest of test_derive_input to inline snapshots
diff --git a/tests/debug/mod.rs b/tests/debug/mod.rs index 781149b..c118053 100644 --- a/tests/debug/mod.rs +++ b/tests/debug/mod.rs
@@ -70,6 +70,15 @@ } } +impl<'a, T> Debug for Lite<&'a T> +where + Lite<T>: Debug, +{ + fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { + Debug::fmt(Lite(&*self.value), formatter) + } +} + impl<T> Debug for Lite<Box<T>> where Lite<T>: Debug,