From 647967f271d356c3d309ab24ca96fd09f4c87829 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sat, 23 Apr 2022 11:04:52 +0300 Subject: Add logging to coinbase rewards --- src/student.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/student.rs') diff --git a/src/student.rs b/src/student.rs index 2b9c5bd..b6d99cd 100644 --- a/src/student.rs +++ b/src/student.rs @@ -24,6 +24,12 @@ pub struct User { pub is_bot: bool, } +impl fmt::Display for User { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + write!(f, "{}", self.user_id) + } +} + #[derive(Serialize, Deserialize, Debug, PartialEq, Clone)] pub struct MetuId { id: Id, -- cgit v1.2.3-70-g09d2