From 56052adac3df7755ce09a902ec20de16f3d900d5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 19 Feb 2024 19:31:05 +0000 Subject: [PATCH] INNER --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1d3ac3b..a552470 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,9 +2,9 @@ use educe::Educe; use std::fmt; #[derive(Debug)] -pub struct MyDebug; +pub struct Inner; -impl MyDebug { +impl Inner { fn our_fmt(&self, _f: &mut fmt::Formatter) -> fmt::Result { Ok(()) } @@ -13,15 +13,15 @@ impl MyDebug { #[derive(Educe)] #[educe(Debug(name = false))] pub struct Thing { - #[educe(Debug(method = "MyDebug::our_fmt"))] - field: MyDebug, + #[educe(Debug(method = "Inner::our_fmt"))] + field: Inner, #[educe(Debug(name(Q)))] other: u32, } fn main() { let a = Thing { - field: MyDebug, + field: Inner, other: 6, }; println!("{:?}", &a); -- 2.30.2