xref: /tonic/tests/skip_debug/src/lib.rs (revision 7988738e)
15be40f14SAndrew Yuan pub mod pb {
25be40f14SAndrew Yuan     tonic::include_proto!("test");
3*7988738eStottoto 
4*7988738eStottoto     // Add a dummy impl Debug to the skipped debug implementations to avoid
5*7988738eStottoto     // missing impl Debug errors and check debug is not implemented for Output.
6*7988738eStottoto     impl std::fmt::Debug for Output {
fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result7*7988738eStottoto         fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
8*7988738eStottoto             f.debug_struct("Output").finish()
9*7988738eStottoto         }
10*7988738eStottoto     }
115be40f14SAndrew Yuan }
12